---
title: "Create solution for project"
method: POST
path: "/v1/projects/{projectId}/whatsapp/solutions"
tags: ["WhatsApp Solutions"]
---

# Create solution for project

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

Returns all solutions for a project.

## Path parameters

- `projectId` string, required

## Request body

- WhatsappSolutionInputDto
  - `details` WhatsappSolutionDetailsInputDto, required
    - `name` string, required — The name of the solution.
  - `accessToken` string, required — The accessToken received from the authResponse, returned when completing the embedded solution flow.
  - `businessManager` 'SINCH_BR' | 'SINCH_MX' | 'SINCH_UK', required — Business manager.

## Response `201`

Solutions

- WhatsappCreateSolutionListDto
  - `solutions` WhatsappSolutionDto[], required — List of solutions.
    - `id` string, required — The unique ID of the solution
    - `details` WhatsappSolutionDetailsDto, required
      - `name` string, required — The name of the solution.
    - `partnerApp` WhatsappSolutionMetaAppDto
      - `id` number, required — The unique ID of the Meta App.
      - `name` string, required — The name of the Meta App.
    - `ownerApp` WhatsappSolutionMetaAppDto
      - `id` number, required — The unique ID of the Meta App.
      - `name` string, required — The name of the Meta App.
    - `assigned` boolean, required — If project has been assigned to this solution.
  - `failedSolutions` WhatsappFailedSolutionDto[], required — List of failed solutions.
    - `partnerAppId` string, required — The unique ID of the Tech Provider Meta App.
    - `errorCode` 'ACTIVATION_FAILED' | 'CREATION_FAILED' | 'UNRECOGNIZED', required — Error code allows to programmatically handle errors.
    - `errorMessage` string — Human readable message.

## Other responses

- `401` — Unauthorized
- `404` — NotFound
- `500` — InternalServerError

---

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