{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/contacts/","auth":"required","method":"post","params":[{"name":"username","type":"string","default":"Required","desc":"Yo username of contact to add","required":false,"in":"body","ref":"","_id":"55b9565db42b610d00c9b26f"},{"name":"name","type":"string","default":"Optional","desc":"Name of the contact","required":false,"in":"body","ref":"","_id":"55b9565db42b610d00c9b26e"},{"name":"phone_number","type":"string","default":"Optional","desc":"Phone number of contact, Yos can be sent via texts","required":false,"in":"body","ref":"","_id":"55b9565db42b610d00c9b26d"},{"name":"access_token","type":"string","default":"","desc":"","required":true,"in":"body","ref":"","_id":"56a933471bb4420d004cacbe"}],"results":{"codes":[]},"settings":"","examples":{"codes":[]}},"next":{"description":"","pages":[]},"title":"/contacts/","type":"endpoint","slug":"add-contact","excerpt":"Add a contact","body":"","updates":[],"order":4,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"55b9611fb42b610d00c9b297","__v":1,"createdAt":"2015-07-29T22:40:29.215Z","editedParams2":true,"githubsync":"","user":"542954f6cd35120800fceca0","version":{"version":"2.0","version_clean":"2.0.0","codename":"","is_stable":true,"is_beta":true,"is_hidden":false,"is_deprecated":false,"categories":["55b9611fb42b610d00c9b28e","55b9611fb42b610d00c9b28f","55b9611fb42b610d00c9b290","55b9611fb42b610d00c9b291","55b9611fb42b610d00c9b292","55b9611fb42b610d00c9b293","55bc25ee76754617002aa893","56ae7f53be2c040d00d5a09b","56ae7f7b0c1cab0d009f65d1"],"_id":"55b9611eb42b610d00c9b28d","__v":4,"createdAt":"2015-07-29T23:26:22.532Z","project":"54295508cd35120800fceca2","releaseDate":"2015-07-29T23:26:22.532Z"},"category":{"sync":{"isSync":false,"url":""},"pages":["55b9611fb42b610d00c9b294","55b9611fb42b610d00c9b295","55b9611fb42b610d00c9b296","55b9611fb42b610d00c9b297","55c523807f345917005ff8ad"],"title":"Rest API","slug":"rest-api-oauth","order":2,"from_sync":false,"reference":false,"_id":"55b9611fb42b610d00c9b290","__v":2,"createdAt":"2015-07-29T22:28:54.673Z","project":"54295508cd35120800fceca2","version":"55b9611eb42b610d00c9b28d"},"editedParams":true,"project":"54295508cd35120800fceca2"}

post/contacts/

Add a contact

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

username:
stringRequired
Yo username of contact to add
name:
stringOptional
Name of the contact
phone_number:
stringOptional
Phone number of contact, Yos can be sent via texts
access_token:
required
string

User Information

Try It Out

post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}