---
title: "Create a long lived access token"
method: POST
path: "/v1/projects/{projectId}/whatsapp/longLivedAccessToken"
tags: ["WhatsApp"]
deprecated: true
---

# Create a long lived access token

`POST /v1/projects/{projectId}/whatsapp/longLivedAccessToken`

> **Deprecated.**

Returns a long lived access token based on the facebook token from the embedded signup. Valid for 60 days.

## Path parameters

- `projectId` string, required

## Request body

- WhatsappLongLivedAccessTokenInputDto
  - `facebookToken` string — Long-Lived User access token. Mandatory if `facebookCode` is not provided.
  - `facebookCode` string — Single-use access code. Mandatory if `facebookToken` is not provided.
  - `businessManager` 'SINCH_AMERICA' | 'SINCH_BR' | 'SINCH_MX' | 'SINCH_SEP' | 'SINCH_UK' — Business manager.

## Response `201`

The long lived access token.

- WhatsappLongLivedAccessTokenDto
  - `longLivedAccessToken` string, required

## Other responses

- `400` — BadRequest
- `401` — Unauthorized
- `500` — InternalServerError

## Changes

> 4 revisions in range; 1 not diffed.

- **2026-09-01** `c6a937922d10` — 10 breaking, 14 info
  - added `#/components/schemas/WhatsappInputBusinessManagersEnum` to the `businessManager` request property `allOf` list
  - removed the enum value `SINCH_AMERICA` of the request property `businessManager`
  - removed the enum value `SINCH_BR` of the request property `businessManager`
  - removed the enum value `SINCH_MX` of the request property `businessManager`
  - …20 more
- **2026-08-18** `c78a716de420` — 1 info
  - api operation id `EmbeddedSignupHelperController_createLongLivedAccessToken_v1` removed and replaced with `WhatsappEmbeddedSignupHelperController_createLongLivedAccessToken_v1`

[Change history](https://skmtc.dev/sinch/apis/provisioning-api/changes/v1/projects/:projectId/whatsapp/longLivedAccessToken/post.md)

---

[API](https://skmtc.dev/sinch/apis/provisioning-api.md) · [All operations](https://skmtc.dev/sinch/apis/provisioning-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sinch/provisioning-api/revisions/c6a937922d10/schema)
