latestOpenAPI 3.1.02026-08-18893023.3 MB

c78a716de420

WhatsApp

Create a long lived access token

Returns a long lived access token based on the facebook token from the embedded signup. Valid for 60 days.
post/v1/projects/{projectId}/whatsapp/longLivedAccessToken

Path parameters

projectIdstring required

The unique ID of the project. You can find this on the <a href="https://dashboard.sinch.com/">Sinch Dashboard</a>.

Request body

facebookTokenstring

Long-Lived User access token. Mandatory if facebookCode is not provided.

facebookCodestring

Single-use access code. Mandatory if facebookToken is not provided.

businessManager'SINCH_AMERICA' | 'SINCH_BR' | 'SINCH_MX' | 'SINCH_SEP' | 'SINCH_UK'

Business manager.

Response

The long lived access token.

longLivedAccessTokenstring required