Criar ou editar lista de contatos
curl --request POST \
--url https://api.hubfy.io/v1/customer_lists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"list_id": "cls_4f8k2m9q1x7c3v5b",
"name": "Fotografia Essencial",
"kind": "automatic"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
list_id: 'cls_4f8k2m9q1x7c3v5b',
name: 'Fotografia Essencial',
kind: 'automatic'
})
};
fetch('https://api.hubfy.io/v1/customer_lists', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hubfy.io/v1/customer_lists"
payload = {
"list_id": "cls_4f8k2m9q1x7c3v5b",
"name": "Fotografia Essencial",
"kind": "automatic"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "cls_4f8k2m9q1x7c3v5b",
"name": "Fotografia Essencial",
"dashboard_url": "https://dashboard.hubfy.io/acc_3h6k9n2q5t8w1z4c/dashboard"
}{
"error": {
"code": "invalid_parameter",
"message": "email: Invalid email address",
"param": null,
"type": "invalid_request_error",
"doc_url": null
}
}{
"error": {
"code": "invalid_api_key",
"message": "Invalid API key",
"param": null,
"type": "authentication_error",
"doc_url": null
}
}{
"error": {
"code": "insufficient_permission",
"message": "Esta credencial não tem a área orders em Ver e alterar.",
"param": null,
"type": "permission_error",
"doc_url": null
}
}{
"error": {
"code": "not_found",
"message": "Pedido ord_4f8k2m9q1x7c3v5b não encontrado nesta conta.",
"param": null,
"type": "invalid_request_error",
"doc_url": null
}
}{
"error": {
"code": "idempotency_key_in_use",
"message": "Outra chamada com esta idempotency_key está em andamento.",
"param": null,
"type": "invalid_request_error",
"doc_url": null
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Account request limit exceeded; retry after 60 seconds",
"param": null,
"type": "rate_limit_error",
"doc_url": null
}
}Email
Criar ou editar lista de contatos
Cria (sem list_id) ou edita uma lista. POST /v1/customer_lists na API da Hubfy: parâmetros, resposta, erros e exemplos. Também no conector MCP (save_customer_list).
POST
/
v1
/
customer_lists
Criar ou editar lista de contatos
curl --request POST \
--url https://api.hubfy.io/v1/customer_lists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"list_id": "cls_4f8k2m9q1x7c3v5b",
"name": "Fotografia Essencial",
"kind": "automatic"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
list_id: 'cls_4f8k2m9q1x7c3v5b',
name: 'Fotografia Essencial',
kind: 'automatic'
})
};
fetch('https://api.hubfy.io/v1/customer_lists', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hubfy.io/v1/customer_lists"
payload = {
"list_id": "cls_4f8k2m9q1x7c3v5b",
"name": "Fotografia Essencial",
"kind": "automatic"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "cls_4f8k2m9q1x7c3v5b",
"name": "Fotografia Essencial",
"dashboard_url": "https://dashboard.hubfy.io/acc_3h6k9n2q5t8w1z4c/dashboard"
}{
"error": {
"code": "invalid_parameter",
"message": "email: Invalid email address",
"param": null,
"type": "invalid_request_error",
"doc_url": null
}
}{
"error": {
"code": "invalid_api_key",
"message": "Invalid API key",
"param": null,
"type": "authentication_error",
"doc_url": null
}
}{
"error": {
"code": "insufficient_permission",
"message": "Esta credencial não tem a área orders em Ver e alterar.",
"param": null,
"type": "permission_error",
"doc_url": null
}
}{
"error": {
"code": "not_found",
"message": "Pedido ord_4f8k2m9q1x7c3v5b não encontrado nesta conta.",
"param": null,
"type": "invalid_request_error",
"doc_url": null
}
}{
"error": {
"code": "idempotency_key_in_use",
"message": "Outra chamada com esta idempotency_key está em andamento.",
"param": null,
"type": "invalid_request_error",
"doc_url": null
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Account request limit exceeded; retry after 60 seconds",
"param": null,
"type": "rate_limit_error",
"doc_url": null
}
}Autorizações
Cabeçalhos
Corpo
application/json