WhatsApp

Create a long lived access token

Changed on
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

Request

  • Base URL
    https://provisioning.api.sinch.com
  • URL
    https://provisioning.api.sinch.com/v1/projects/{projectId}/whatsapp/longLivedAccessToken
  • Auth
    HTTP basic and HTTP bearer and OAuth 2
    Client credentials
    Token URL: https://auth.sinch.com/oauth2/token

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

Changes

    • breaking

      added to the request property allOf list

    • breaking

      removed the enum value SINCH_AMERICA of the request property

    • breaking

      removed the enum value SINCH_BR of the request property

    • breaking

      removed the enum value SINCH_MX of the request property

    • breaking

      removed the enum value SINCH_SEP of the request property

    • breaking

      removed the enum value SINCH_UK of the request property

    • breaking

      the request property type changed from string to no type

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the response's body type changed from no type to object for status

    • info

      removed subschema #1: FacebookRequestLimitReachedErrorTitle subschema #2: LogInFacebookRequiredErrorTitle subschema #3: InternalErrorErrorTitle from the response body oneOf list for the response status

    • info

      removed subschema #1: InvalidInputErrorTitle subschema #2: InvalidInputErrorTitle subschema #3: InvalidInputErrorTitle subschema #4: InvalidFacebookTokenErrorTitle subschema #5: InvalidFacebookCodeErrorTitle subschema #6: InvalidBusinessManagerErrorTitle subschema #7: InvalidBusinessManagerForEnvironmentErrorTitle subschema #8: InvalidPayloadErrorTitle from the response body oneOf list for the response status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      api operation id EmbeddedSignupHelperController_createLongLivedAccessToken_v1 removed and replaced with WhatsappEmbeddedSignupHelperController_createLongLivedAccessToken_v1