Skip to content

Contacts

Run in Postman

Contact represents the end user on given channel. Contact is automatically created whenever you receive a message from the user for the first time. However, there are also different ways how you can create the contact (i.e. for Mobile platform the user is created when you send a message to the given phone number).

Response Body Params

Parameter Type Description
id string Id of the contact. Id is unique across channels and is generated by Amio.
name string Name of the contact.

GET https://api.amio.io/v1/channels/{channel_id}/contacts

Parameters

Name In Type Required Description
channel_id path string yes Id of the channel.

Response 200

[
{
"id": "6456078781510718339",
"name": "Dietrich Bonhoeffer"
}
]

Response Body Params

Parameter Type Description
id string Id of the contact. Id is unique across channels and is generated by Amio.
name string Name of the contact.

GET https://api.amio.io/v1/channels/{channel_id}/contacts/{contact_id}

Parameters

Name In Type Required Description
channel_id path string yes Id of the channel.
contact_id path string yes Id of the contact.

Response 200

{
"id": "6456078781510718339",
"name": "Dietrich Bonhoeffer"
}

Deleting a contact will also delete its conversation, messages and linked files.

DELETE https://api.amio.io/v1/channels/{channel_id}/contacts/{contact_id}

Parameters

Name In Type Required Description
channel_id path string yes Id of the channel.
contact_id path string yes Id of the contact to be deleted.

Response 204

Select a channel to see its specifics.

Contact represents the Amio chat user. Contact is automatically created whenever you receive a message from the user for the first time.

Response Body Params

Parameter Type Description
id string Id of the contact. Id is unique across channels and is generated by Amio.
name string Name of the contact. Id by default.

GET https://api.amio.io/v1/channels/{channel_id}/contacts

Parameters

Name In Type Required Description
channel_id path string yes Id of the channel.

Response 200

[
{
"id": "6456078781510715474",
"name": "6456078781510715474"
}
]

Response Body Params

Parameter Type Description
id string Id of the contact. Id is unique across channels and is generated by Amio.
name string Name of the contact. Id by default.

GET https://api.amio.io/v1/channels/{channel_id}/contacts/{contact_id}

Parameters

Name In Type Required Description
channel_id path string yes Id of the channel.
contact_id path string yes Id of the contact.

Response 200

{
"id": "6456078781510715474",
"name": "6456078781510715474"
}

DELETE https://api.amio.io/v1/channels/{channel_id}/contacts/{contact_id}

Parameters

Name In Type Required Description
channel_id path string yes Id of the channel.
contact_id path string yes Id of the contact to be deleted.

Response 204