# Embedded creation for WhatsApp Multi-Partner Solution
Multi-Partner Solution (MPS) creation allows for a Tech Provider (TP) to create an MPS. This enables the creation of new WhatsApp senders through Embedded Signup (ES) together with Sinch as Solution Partner (SP).
This can be achieved via Sinch Build, or by following these instructions:
## Generate Access Token
An access token can be generated using an embedded create button for MPS creation:
```javascript
```
The script will generate response from Meta:
```javascript
{
status: 'connected',
authResponse: {
accessToken: '',
expiresIn:'',
reauthorize_required_in:'',
signedRequest:'',
userID:''
}
}
```
Please refer to [Meta documentation](https://developers.facebook.com/docs/whatsapp/solution-providers/multi-partner-solution-embedded-creation#embedded-creation-button) for more information about this step.
Next, the access token will be used to create a Solution.
## Create a Solution
Use Provisioning API Create Solution endpoint to create a Solution by providing the access token (`accessToken`).
```javascript
async function createSolution() {
const resp = await fetch(
`https://provisioning.api.sinch.com/v1/projects/${PROJECT_ID}/whatsapp/solutions`,
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization:
'Basic ' +
Buffer.from(ACCESS_KEY + ':' + ACCESS_SECRET).toString('base64'),
},
body: JSON.stringify({
accessToken: ACCESS_TOKEN,
businessManager: 'SINCH_UK',
details: {
name: 'Test name',
},
}),
}
);
const data = await resp.json();
return data;
}
```
The response to this request will return all created Solutions as a list. This list can later be retrieved using the List Solutions endpoint.
Next, a Solution will be assigned to the project to enable ES Sender creation.
## Assign Solution to Project
Use Provisioning API to assign the Solution to the Project:
```javascript
async function assignSolution() {
const resp = await fetch(
`https://provisioning.api.sinch.com/v1/projects/${PROJECT_ID}/whatsapp/solutions/${SOLUTION_ID}/assign`,
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization:
'Basic ' +
Buffer.from(ACCESS_KEY + ':' + ACCESS_SECRET).toString('base64'),
},
}
);
const data = await resp.json();
return data;
}
```
Once a Solution has been assigned to the project, it's possible to create Senders using the ES flow.