Contatos
GET https://66text.meusistema.digital/api/contacts/
curl --request GET \
--url 'https://66text.meusistema.digital/api/contacts/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://66text.meusistema.digital/api/contacts/' \
--header 'Authorization: Bearer {api_key}' \
| Parâmetros | Detalhes | Descrição |
|---|---|---|
| page | Opcional Número inteiro | O número da página da qual você deseja obter os resultados. O padrão é 1. |
| results_per_page | Opcional Número inteiro | Quantos resultados você deseja por página. Valores permitidos: 10 , 25 , 50 , 100 , 250 , 500 , 1000. O padrão é 25. |
{
"data": [
{
"id": 1,
"user_id": 1,
"name": "John Doe",
"phone_number": "+123 123 123",
"custom_parameters": {
"age": 18,
},
"continent_code": "EU",
"country_code": "IT",
"has_opted_out": false,
"total_sent_sms": 10,
"total_pending_sms": 5,
"total_failed_sms": 0,
"total_received_sms": 20,
"last_sent_datetime": "2026-01-25 08:17:16",
"last_received_datetime": "2026-01-25 08:17:16",
"last_datetime": null,
"datetime": "2026-01-25 08:17:16",
},
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://66text.meusistema.digital/api/contacts?page=1",
"last": "https://66text.meusistema.digital/api/contacts?page=1",
"next": null,
"prev": null,
"self": "https://66text.meusistema.digital/api/contacts?page=1"
}
}
GET https://66text.meusistema.digital/api/contacts/{contact_id}
curl --request GET \
--url 'https://66text.meusistema.digital/api/contacts/{contact_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://66text.meusistema.digital/api/contacts/{contact_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"user_id": 1,
"name": "John Doe",
"phone_number": "+123 123 123",
"custom_parameters": {
"age": 18,
},
"continent_code": "EU",
"country_code": "IT",
"has_opted_out": false,
"total_sent_sms": 10,
"total_pending_sms": 5,
"total_failed_sms": 0,
"total_received_sms": 20,
"last_sent_datetime": "2026-01-25 08:17:16",
"last_received_datetime": "2026-01-25 08:17:16",
"last_datetime": null,
"datetime": "2026-01-25 08:17:16",
}
}
POST https://66text.meusistema.digital/api/contacts
| Parâmetros | Detalhes | Descrição |
|---|---|---|
| phone_number | Obrigatório Texto | - |
| name | Opcional Texto | - |
| custom_parameter_key[index] | Opcional Texto | - |
| custom_parameter_value[index] | Opcional Texto | - |
curl --request POST \
--url 'https://66text.meusistema.digital/api/contacts' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'phone_number=+1231231231' \
--form 'name=Example name' \
--url 'https://66text.meusistema.digital/api/contacts' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'phone_number=+1231231231' \
--form 'name=Example name' \
{
"data": {
"id": 1
}
}
POST https://66text.meusistema.digital/api/contacts/{contact_id}
| Parâmetros | Detalhes | Descrição |
|---|---|---|
| phone_number | Opcional Texto | - |
| name | Opcional Texto | - |
| custom_parameter_key[index] | Opcional Texto | - |
| custom_parameter_value[index] | Opcional Texto | - |
curl --request POST \
--url 'https://66text.meusistema.digital/api/contacts/{contact_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'custom_parameter_key[0]=name' \
--form 'custom_parameter_value[0]=john@example.com' \
--url 'https://66text.meusistema.digital/api/contacts/{contact_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'custom_parameter_key[0]=name' \
--form 'custom_parameter_value[0]=john@example.com' \
{
"data": {
"id": 1
}
}
DELETE https://66text.meusistema.digital/api/contacts/{contact_id}
curl --request DELETE \
--url 'https://66text.meusistema.digital/api/contacts/{contact_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://66text.meusistema.digital/api/contacts/{contact_id}' \
--header 'Authorization: Bearer {api_key}' \