segmentation.list_create
Criar lista com emoji. Cria uma lista manual com nome e emoji opcional. Nome único na conta sem diferenciar maiúsculas; repetido dá invalid_input.
- Endpoint:
POST https://app.atomiks.com.br/api/v1/segmentation.list_create(corpo JSON) - Quem pode chamar: membro da conta
- Escopo da chave:
crm:write - Grava dados: sim
- Pela chave de API: sim
- Ferramenta MCP:
segmentation_list_create - Ficha em JSON:
https://app.atomiks.com.br/api/v1/openapi.json(operationIdsegmentation.list_create)
Entrada
| Campo | Tipo | Obrigatório | Nota |
|---|---|---|---|
name | string | sim | |
emoji | string | null | não |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"emoji": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 16
},
{
"type": "null"
}
]
}
},
"required": [
"name"
]
}Exemplo
curl -X POST https://app.atomiks.com.br/api/v1/segmentation.list_create \
-H "Authorization: Bearer $ATOMIKS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Clientes premium","emoji":"🎯"}'CLI:
node cli/atomiks.mjs segmentation.list_create --json '{"name":"Clientes premium","emoji":"🎯"}'MCP: ferramenta segmentation_list_create com a mesma entrada.
Saída
Sucesso: {"data": ...} com o formato abaixo.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"emoji": {
"type": [
"string",
"null"
]
},
"leadCount": {
"type": "number"
},
"updatedAt": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"source": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"name",
"emoji",
"leadCount",
"updatedAt",
"createdAt",
"source"
],
"additionalProperties": false
}Erros
{"error": {"code", "message", "requestId"}}. Códigos: invalid_input (400), unauthorized (401), forbidden / account_pending / scope_missing (403), not_found (404), limit_reached (409), internal (500).