POST tp/app/contact/create

Creates a new contact on behalf of the app itself. Returns a json representation of the created contact.

N.B.: this API must be invoked using the application-level token (client credentials).

Resource URL

https://api.indoona.com/tp/app/contact/create.json

Parameters

name description
contact_id the unique numeric id of the contact to be created
display_name a display name for the contact
avatar_url (optional) the HTTP(S) url of the contact’s avatar.
capabilities (optional) a list of contact’s capabilities separated by spaces (e.g. "group_add interactive"): the contact will have default capabilities, if not specified

Example


POST https://api.indoona.com/tp/app/contact/create.json
Content-Type=application/x-www-form-urlencoded

contact_id=123&display_name=John+Doe&avatar_url=https://appdomain/avatar/contact3.jpg&capabilities=group_add+interactive

Response
{
    "contact_id"    : "123",
    "display_name"  : "John Doe",
    "avatar_url"    : "https://appdomain/avatar/contact3.jpg",
    "capabilities"  : ["group_add", "interactive"]
}