# Join a campaign

Joins a campaign.

```http
POST https://api.pozy.ai/public/creator-campaigns/{token}
```

- Area: Creators / Creator Portal
- Auth: none (public endpoint)

## Path parameters

- `token` (string, required)

## Request body

Content type: `application/json`

- `displayName`, string: 1 to 200 characters
- `email`, string (email)

## Example request

```bash
curl -X POST "https://api.pozy.ai/public/creator-campaigns/string" \
  -H "Content-Type: application/json" \
  -d '{
  "displayName": "Acme",
  "email": "alex@example.com"
}'
```

```ts
const res = await fetch("https://api.pozy.ai/public/creator-campaigns/string", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    displayName: "Acme",
    email: "alex@example.com"
  }),
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);
```

```python
import os
import requests

resp = requests.post(
    "https://api.pozy.ai/public/creator-campaigns/string",
    json={
        "displayName": "Acme",
        "email": "alex@example.com",
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 201

- `participantToken`, string, required

```json
{
  "participantToken": "string"
}
```
