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

Changes

Changed in 2 of the 4 revisions of this API.1015

  • c6a937922d101014See the full diff
    • added WhatsappInputBusinessManagersEnum to the businessManager request property allOf list

      request-property-all-of-added

    • removed the enum value SINCH_AMERICA of the request property businessManager

      request-property-enum-value-removed

    • removed the enum value SINCH_BR of the request property businessManager

      request-property-enum-value-removed

    • removed the enum value SINCH_MX of the request property businessManager

      request-property-enum-value-removed

    • removed the enum value SINCH_SEP of the request property businessManager

      request-property-enum-value-removed

    • removed the enum value SINCH_UK of the request property businessManager

      request-property-enum-value-removed

    • the businessManager request property type/format changed from string/ to /

      request-property-type-changed

    • the response's body type/format changed from / to object/ for status 400

      response-body-type-changed

    • the response's body type/format changed from / to object/ for status 401

      response-body-type-changed

    • the response's body type/format changed from / to object/ for status 500

      response-body-type-changed

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

      response-body-one-of-removed

    • 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 400

      response-body-one-of-removed

    • added the optional property additionalInformation to the response with the 400 status

      response-optional-property-added

    • added the optional property additionalInformation to the response with the 401 status

      response-optional-property-added

    • added the optional property additionalInformation to the response with the 500 status

      response-optional-property-added

    • the response property errorCode became required for the status 401

      response-property-became-required

    • the response property message became required for the status 401

      response-property-became-required

    • the response property resolution became required for the status 401

      response-property-became-required

    • added the required property errorCode to the response with the 400 status

      response-required-property-added

    • added the required property errorCode to the response with the 500 status

      response-required-property-added

    • added the required property message to the response with the 400 status

      response-required-property-added

    • added the required property message to the response with the 500 status

      response-required-property-added

    • added the required property resolution to the response with the 400 status

      response-required-property-added

    • added the required property resolution to the response with the 500 status

      response-required-property-added

    • api operation id EmbeddedSignupHelperController_createLongLivedAccessToken_v1 removed and replaced with WhatsappEmbeddedSignupHelperController_createLongLivedAccessToken_v1

      api-operation-id-removed

Of the 4 revisions, 1 has no diff computed.