Sequence to chat with a contact through the API #1572
Unanswered
jeovajireh
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@viapratica Please check https://www.chatwoot.com/docs/channels/api/send-messages and see if that solves your query. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everybody.
I can create new contacts through the API, however, whenever I send a message via the API it is always assigned to the contact Jane, What would be the correct order to create a new contact, start a conversation with an agent through this new contact using the API ?
1 - Create contact
curl --request POST 'http://127.0.0.1:3003/api/v1/accounts/1/contacts' --header 'Content-Type: application / json' --header 'api_access_token: NQfhAnM58ThYybXV119BYrLR' --data- raw '{"name": "RBS", "email": "[email protected]", "phone_number": "912345678"}'
2 - Start a conversation with the contact created above.
3 - Send message to an agent using the contact created above
Thanks for any help
Beta Was this translation helpful? Give feedback.
All reactions