Skip to main content

Messaging

The messaging API allows brands to communicate directly with creators.

The messaging feature is behind a separate allowlist. You can request access through your Snap point of contact.

Get Conversation Id

Before sending a message, the brand must create a conversation with the creator. This endpoint gets or creates a conversation between a brand and creator profile.

HTTP Request

GET
https://businessapi.snapchat.com/v1/public_profiles/{profile_id}/group_conversation

Parameters

Field nameRequiredDescriptionPossible values
profile_idRBrand profile id.UUID
creator_profile_idRCreator profile id.UUID

HTTP Response

NameDescriptionPossible values
request_idA UUID to identify this request.UUID
request_statusThe status of the request.SUCCESS, ERROR
conversationThe Conversation object.See Conversation object details below.
debug_messageA debug message to help debug if there is an error.
display_messageDisplay message if there is an error.
error_codeError code if there is an error.

Conversation Object

FieldDescriptionPossible Values
conversation_idUnique identifier for a conversation.UUID
tokenToken for the conversation.Formatted as “SnapProfileId/”+brand_profile_id

Example Response

{
"request_id": "ecfe244d-0b1b-4787-9919-4ee7dd275a0a",
"request_status": "SUCCESS",
"conversation": {
"conversation_id": "5b98ba5a-98f6-4543-a5da-746012f93d8a",
"token": "SnapProfileId/27d0d705-b243-402f-abad-40250e491e12"
}
}

Send Collaboration Message

A brand profile can send a message to a creator to invite them for collaboration.

Prerequisite: A Conversation Id is required to send a message. Call Get Conversation Id before sending a message.

HTTP Request

POST
https://businessapi.snapchat.com/v1/public_profiles/{profile_id}/group_conversation_messages

Parameters

Field NameRequiredDescriptionPossible Values
profile_idRBrand profile ID.UUID
conversation_idRConversation ID.UUID
tokenRToken for the conversation.Formatted as “SnapProfileId/”+brand_profile_id
group_conversation_messagesRList of GroupConversationMessage objects (see below for details) to send. Currently only supports one input object each call.Text only

GroupConversationMessage Object

FieldRequiredDescriptionPossible Values
typeRMessage type.Enum: TEXT (Only TEXT supported currently)
text_messageRMessage in text form.
message_idOUnique identifier for message.

HTTP Response

NameDescriptionPossible Values
request_idA UUID to identify this request.UUID
request_statusThe status of the request.SUCCESS, ERROR
group_conversation_messagesGroupConversationMessageSubResponse object.See GroupConversationMessageSubResponse object details.
debug_messageA debug message to help debug if there is an error.
display_messageDisplay message if there is an error.
error_codeError code if there is an error.

GroupConversationMessageSubResponse

FieldDescriptionPossible Values
sub_request_statusThe status of the sub-request.SUCCESS, ERROR
group_conversation_messageGroupConversationMessage object that was sent (see below for details).See GroupConversationMessage object details
sub_request_error_reasonError message; empty if sub_request_status is not ERROR.

Example Response

{
"request_id": "ecfe244d-0b1b-4787-9919-4ee7dd275a0a",
"request_status": "SUCCESS",
"group_conversation_messages": [
{
"sub_request_status": "SUCCESS",
"group_conversation_message": {
"message_id": "9d9cbc3e-3d78-4a80-85e4-a86a6abdcbf4",
"type": "TEXT",
"text_message": "Hello, this is Snap, and we want to collaborate with you!"
},
"sub_request_error_reason": ""
}
]
}

Get Collaboration Message

A brand profile can get conversation messages between themselves and creators.

HTTP Request

GET
https://businessapi.snapchat.com/v1/public_profiles/{profile_id}/group_conversation_messages

Parameters

Field nameRequiredDescriptionPossible Values
profile_idRBrand profile ID.UUID
conversation_idRConversation ID.UUID
tokenRToken for the conversation.Formatted as “SnapProfileId/”+brand_profile_id
limitONumber of messages per page.
cursorOPagination encoded cursor for next page messages. The default is empty.

HTTP Response

NameDescriptionPossible Values
request_idA UUID to identify this request.UUID
request_statusThe status of the request.SUCCESS, ERROR
group_conversation_messagesList of GroupConversationMessage objects (see below for details).See GroupConversationMessage object details
debug_messageA debug message to help debug if there is an error.
display_messageDisplay message if there is an error.
error_codeError code if there is an error.

Example Response

{
"request_id": "efe61f1b-4412-4c58-afa9-fb22c8b71008",
"request_status": "SUCCESS",
"group_conversation_messages": [
{
"sub_request_status": "SUCCESS",
"group_conversation_message": {
"message_id": "8105113a-97cc-4c06-9604-97469deb8550",
"text_message": "testing"
}
},
{
"sub_request_status": "SUCCESS",
"group_conversation_message": {
"message_id": "b6d83cc5-88b8-4fc7-a909-6faa39d6e382",
"text_message": "testing another!"
}
}
],
"paging": {
"next_page_id": "NA",
"next_link": "https://ingress-us-central1-gcp.api.snapchat.com?limit=2&cursor=NA"
}
}

Get Unread Count of Group Conversation Message

A brand profile can get the number of unread group conversations between themselves and creators.

HTTP Request

GET
https://businessapi.snapchat.com/v1/public_profiles/{profile_id}/group_conversation_messages_count

Parameters

Field nameRequiredDescriptionPossible Values
profile_idRBrand profile ID.UUID

HTTP Response

NameDescriptionPossible Values
request_idA UUID to identify this request.UUID
request_statusThe status of the request.SUCCESS, ERROR
countThe unread count of group conversation messages, expressed as a range.< 10, 10+, or 99+
debug_messageA debug message to help debug if there is an error.
display_messageDisplay message if there is an error.
error_codeError code if there is an error.

Example Response

{
"request_id": "e08359fb-a0a6-44f2-be16-db88ada4150a",
"request_status": "SUCCESS",
"count": "< 10"
}
Was this page helpful?
Yes
No