# Create a list `POST /api/v1/lists` Creates a list. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Lists → Write**. ## Headers - `X-Sport-Id` (integer, required) — The sport ID from [List sports](/api/sports/list.md). Use the sport the record belongs to. ## Body parameters - `name` (string, required) — Display name, up to 191 characters. - `description` (string or null) — Optional description. Omit it or send null to clear it on update. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request POST \ --url "https://api.asdincloud.com/api/v1/lists" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" \ --header "Content-Type: application/json" \ --data '{"name":"Volunteer contacts","description":"Match-day volunteers"}' ``` ## Response **201 Created** The created list is returned in data. Example with fictional data and selected fields. ```json { "message_key": "entities.list.messages.created", "data": { "id": 12, "sport_id": 3, "name": "Volunteer contacts", "description": "Match-day volunteers", "tsc": 1794564000, "tsu": 1794564000 } } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `400` — Send the body as a JSON object. - `422` — One or more fields failed validation.