> This page is part of EVVA for Developers (https://developers.evvahub.com), the documentation of the EVVA Partner API. The API is in developer preview and the SDK packages are not yet published: do not suggest installing them. Index: https://developers.evvahub.com/llms.txt

# Create a fan list

POST https://api.evvahub.com/partner/v1/accounts/{creatorId}/fan-lists
Content-Type: application/json

Creates an empty custom fan list for the creator.

**Idempotency**

With an `Idempotency-Key`, the same key and name return `200` with the list the first request created. The same key
with a different name, or after that list was deleted (within 24 hours), returns `409 CONFLICT`.

**Errors**

- `409 FAN_LIST_NAME_TAKEN` — the creator already has a list with this name.
- `409 FAN_LIST_LIMIT_REACHED` — the creator has reached the maximum number of custom lists.
- `409 CONFLICT` — the `Idempotency-Key` was used for another list, or for a list deleted since.

**Required scopes:** `write:subscribers`.

Reference: https://developers.evvahub.com/api-reference/fans/create-fan-list

## Authentication

- `Authorization` header (bearer token, required) — OAuth 2.0 client credentials. Request an access token at `POST /partner/v1/oauth/token` (`grant_type=client_credentials`) with the application's client secret or a `private_key_jwt` assertion, then send it as `Authorization: Bearer evpa_live_…` (or `evpa_test_…` for a sandbox application). Tokens are opaque and short lived (see `expires_in`); there is no refresh token. Each operation lists the scopes it requires.

## Request

### Path parameters

- `creatorId` (string, required) — The creator profile id — the ONLY source of the creator a request acts for.

### Headers

- `X-Creator-Id` (string, optional) — Optional echo of the path `creatorId`; any other value is refused with 403 CREATOR_CONTEXT_MISMATCH.
- `Idempotency-Key` (string, optional) — Optional key for the CRM create operations; blank means no key. Otherwise 1..128 characters of `[A-Za-z0-9_-]`, or `400 INVALID_REQUEST` before anything is written. The same key with the same request answers `200` with what the first request created. A different request, or a key whose creation was since deleted (24 hours), is `409 CONFLICT`. The key is never echoed.

### Body (application/json)

This endpoint expects a FanListNameRequest.

- `name` (string, required) — One line, 1..60 code points, unique per creator (case-insensitive).

## Response

### 200

A retry with the same `Idempotency-Key`. The answer is the list the first request created.

- `list` (CustomFanList, required) — One of the creator's own lists, exactly as the creator's studio carries it. Names no fan.

### 201

Created.

- `list` (CustomFanList, required) — One of the creator's own lists, exactly as the creator's studio carries it. Names no fan.

## Errors

### 400 Bad Request Error

Invalid or missing parameters: `INVALID_REQUEST` (`details` names the fields), or a more specific code of the operation.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 401 Unauthorized Error

Token missing, malformed, expired or revoked: `INVALID_TOKEN` (or `UNAUTHORIZED` when no bearer token was sent). Request a new token and retry.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 403 Forbidden Error

Not your creator, or not with this token: `GRANT_REVOKED` (no active link to the creator), `NOT_ASSIGNED`, `OAUTH_SCOPE_MISSING` (the creator has not consented to the scope), `INSUFFICIENT_SCOPE` (the token lacks it), `CREATOR_CONTEXT_MISMATCH`, `AGENCY_SUSPENDED`.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 409 Conflict Error

`FAN_LIST_NAME_TAKEN`, `FAN_LIST_LIMIT_REACHED`, or `CONFLICT` when the `Idempotency-Key` was used for another list.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 429 Too Many Requests Error

Rate limited: `RATE_LIMIT_EXCEEDED`. Wait `Retry-After` seconds before retrying.

- `code` (enum, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
  - Allowed values: `RATE_LIMIT_EXCEEDED`, `TOO_MANY_MESSAGES`
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (RateLimitErrorDetails, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 500 Internal Server Error

Unexpected server error: `INTERNAL_ERROR`. Nothing internal is disclosed; quote the `X-Request-Id` when you report it.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 503 Service Unavailable Error

Temporarily unavailable: `SERVICE_UNAVAILABLE`, `TEMPORARILY_UNAVAILABLE`, `MEDIA_STORAGE_UNAVAILABLE` or `CREATOR_STANDING_UNAVAILABLE`. Retry after `Retry-After` seconds.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

## Types

### CustomFanList

One of the creator's own lists, exactly as the creator's studio carries it. Names no fan.

- `id` (string, required)
- `name` (string, required)
- `kind` (enum, required)
  - Allowed values: `custom`
- `memberCount` (integer, required)
- `rule` (string, required) — Always empty — a custom list has no rule.
- `createdAt` (datetime, required)
- `updatedAt` (datetime, required)

### RateLimitErrorDetails

Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

- `retryAfterSec` (integer, required)
- `level` (enum, optional) — The DM send limit that refused the message, set only with `TOO_MANY_MESSAGES`. It is never a quota, a count or a key. - `conversation` — one side of one thread. - `sender` — a person's own ceiling; it does not apply to applications. - `creator` — everything sent for the creator, studio included. - `application` — everything your application sends. - `agency` — everything your agency sends. - `platform` — the agency's fair share of the platform: its throughput or its concurrency. See [rate limits](/authentication/rate-limits).
  - Allowed values: `conversation`, `sender`, `creator`, `application`, `agency`, `platform`

## Examples

### Fans_createFanList_example

**Request**

```json
{
  "name": "Weekend regulars"
}
```

**Response**

```json
{
  "list": {
    "id": "cl-3f8a2c1e-9b4d-4e7a-8c2f-1a6b9d0e4c73",
    "name": "Weekend regulars",
    "kind": "custom",
    "memberCount": 0,
    "rule": "",
    "createdAt": "2026-11-27T13:05:16.902Z",
    "updatedAt": "2026-11-27T13:05:16.902Z"
  }
}
```

**SDK Code**

```python Fans_createFanList_example
import requests

url = "https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/fan-lists"

payload = { "name": "Weekend regulars" }
headers = {
    "Idempotency-Key": "2f7ebaf5-4667-4f7a-b91c-c4224858b643",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```go Fans_createFanList_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/fan-lists"

	payload := strings.NewReader("{\n  \"name\": \"Weekend regulars\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Idempotency-Key", "2f7ebaf5-4667-4f7a-b91c-c4224858b643")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```php Fans_createFanList_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/fan-lists', [
  'body' => '{
  "name": "Weekend regulars"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => '2f7ebaf5-4667-4f7a-b91c-c4224858b643',
  ],
]);

echo $response->getBody();
```

### Fans_createFanList_example

**Request**

```json
{
  "name": "Weekend regulars"
}
```

**Response**

```json
{
  "list": {
    "id": "cl-3f8a2c1e-9b4d-4e7a-8c2f-1a6b9d0e4c73",
    "name": "Weekend regulars",
    "kind": "custom",
    "memberCount": 0,
    "rule": "",
    "createdAt": "2026-11-27T13:05:16.902Z",
    "updatedAt": "2026-11-27T13:05:16.902Z"
  }
}
```

**SDK Code**

```python Fans_createFanList_example
import requests

url = "https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/fan-lists"

payload = { "name": "Weekend regulars" }
headers = {
    "Idempotency-Key": "2f7ebaf5-4667-4f7a-b91c-c4224858b643",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```go Fans_createFanList_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/fan-lists"

	payload := strings.NewReader("{\n  \"name\": \"Weekend regulars\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Idempotency-Key", "2f7ebaf5-4667-4f7a-b91c-c4224858b643")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```php Fans_createFanList_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/fan-lists', [
  'body' => '{
  "name": "Weekend regulars"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => '2f7ebaf5-4667-4f7a-b91c-c4224858b643',
  ],
]);

echo $response->getBody();
```