api/postman/mozout-mz-api.postman_collection.json
2026-11-27 22:29:25 +02:00

10758 lines
381 KiB
JSON

{
"info": {
"_postman_id": "037a13a9-71a8-5743-86ce-0d8668c1ca36",
"name": "MozOut Mozambique API 1.0.0",
"description": "All 256 operations of the MozOut Mozambique API, in folders by area. Generated from the OpenAPI specification. Do not edit by hand: regenerate.\n\n`base_url`: https://api.mozout.co.mz (already set). Put your key in `api_key`. Start with a `sandbox_` key: writes are simulated and never charge. Requests that accept an `Idempotency-Key` send a new `{{$guid}}` each time.\n\nPT: Todas as operações da API, em pastas por área. `base_url`: https://api.mozout.co.mz (já preenchido). Ponha a sua chave em `api_key`. Comece com uma chave `sandbox_`: as escritas são simuladas e não cobram.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"version": "1.0.0"
},
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{api_key}}",
"type": "string"
}
]
},
"variable": [
{
"key": "base_url",
"value": "https://api.mozout.co.mz",
"type": "string"
},
{
"key": "api_key",
"value": "",
"type": "secret"
}
],
"item": [
{
"id": "c1262cd6-bb40-5273-8be6-08f4e8313442",
"name": "status",
"description": "Service status.\n\nPT: Estado do serviço.",
"item": [
{
"id": "bce7b758-d978-5244-8998-55422caaffd7",
"name": "Check that the API is responding",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/ping",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"ping"
]
},
"description": "Answers without a key. Use it to test connectivity.\n\nPT: Confirmar que a API responde\n\n`operationId`: `ping.get`",
"auth": {
"type": "noauth"
}
},
"response": []
}
]
},
{
"id": "d4698be3-b2e1-5a4c-ad83-7f958250eb76",
"name": "token",
"description": "The key in use and its limits.\n\nPT: A chave em uso e os seus limites.",
"item": [
{
"id": "96e88c00-e14a-5d51-a857-bbed0c15fd72",
"name": "See the key in use",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/token",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"token"
]
},
"description": "Returns the permissions, validity and limits of the key that made the request. Any valid key can call it. The key itself is never returned.\n\nPT: Ver a chave em uso\n\n`operationId`: `token.get`"
},
"response": []
},
{
"id": "bb6b2df5-08a0-5c63-88a8-7f466dac4ef2",
"name": "See the limits of the key",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/limits",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"limits"
]
},
"description": "Returns the requests left in the current minute and the spending limit of the key.\n\nPT: Ver os limites da chave\n\n`operationId`: `limits.get`"
},
"response": []
}
]
},
{
"id": "82eeba46-d488-5048-82d5-7b61abd2b69f",
"name": "actions",
"description": "Long-running operations.\n\nPT: Operações longas.",
"item": [
{
"id": "64fc801d-0cf9-5a7e-86ed-938745f2a63a",
"name": "Follow a long-running operation",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/actions/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"actions",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The action_id received in the 202 answer."
}
]
},
"description": "Long operations answer `202` with an `action_id`. Use this operation to follow the result instead of repeating the request. Only actions of your own account can be seen.\n\nPT: Acompanhar uma operação longa\n\n`operationId`: `actions.get`"
},
"response": []
}
]
},
{
"id": "5dc34868-5f9f-5cfb-8de4-f8ff43e23930",
"name": "specification",
"description": "This API described in OpenAPI.\n\nPT: Esta API descrita em OpenAPI.",
"item": [
{
"id": "5fd9e8d4-a8d7-52b0-b9fe-71c052e8f8c2",
"name": "Download this specification",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/openapi.json",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"openapi.json"
]
},
"description": "Answers without a key. Returns this OpenAPI document as it is, without the data and meta envelope.\n\nPT: Descarregar esta especificação\n\n`operationId`: `openapi.get`",
"auth": {
"type": "noauth"
}
},
"response": []
}
]
},
{
"id": "17045c66-5100-5346-a86e-fefc5a107840",
"name": "sms",
"description": "Send SMS and check balance and senders. Only for accounts with SMS active.\n\nPT: Enviar SMS e consultar saldo e remetentes. Só para contas com o SMS activo.",
"item": [
{
"id": "0a67d1af-6e8e-5283-a308-8ac37799d1b2",
"name": "Send an SMS",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/sms/messages",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"messages"
]
},
"description": "Needs `sms:write` and SMS active on the account. With a Sandbox key, or while the API is in preparation, the message is simulated: nothing is sent and no credits are used. With a Production key the message enters the queue and credits are taken from the SMS balance (the key spending limit, in currency, does not apply to these credits). Send `Idempotency-Key` so a retry never sends twice. Without `send_at` the message goes out right away and the answer brings its real status: `sent`, `failed`, or `queued` if it has to wait its turn. With `send_at` it stays `scheduled`: the balance is only checked now and the credits leave it when the message goes out (`charged` is `false` until then); if the balance is short at that time, the message is not sent and ends up `failed` with `error` set to `insufficient_credits`. A scheduled message can be cancelled with POST /v1/sms/messages/{id}/cancel.\n\nPT: Enviar um SMS\n\n`operationId`: `sms.messages.create`",
"body": {
"mode": "raw",
"raw": "{\n \"number\": \"+258841234567\",\n \"text\": \"Your order is ready.\",\n \"send_at\": \"2026-11-20T09:30:00+02:00\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "1ef2de0b-8196-5fb4-bd52-337490905920",
"name": "List sent messages",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/messages",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"messages"
],
"query": [
{
"key": "status",
"value": "scheduled",
"description": "Only this status.",
"disabled": true
},
{
"key": "from",
"value": "",
"description": "First day, `YYYY-MM-DD`.",
"disabled": true
},
{
"key": "to",
"value": "",
"description": "Last day, `YYYY-MM-DD`.",
"disabled": true
},
{
"key": "number",
"value": "",
"description": "Only this number, with or without the country code.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `sms:read`. The messages this account sent, newest first. Account notices and verification codes are not listed, and messages simulated with a Sandbox key are not either. The number comes masked. If a message fails, `error` is `delivery_failed`. `charged` says whether the credits already left the balance.\n\nPT: Listar as mensagens enviadas\n\n`operationId`: `sms.messages.list`"
},
"response": []
},
{
"id": "87c7444a-6337-5b41-8c49-f5a255726b4b",
"name": "See one SMS",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/messages/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"messages",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` returned when sending."
}
]
},
"description": "Needs `sms:read`. Simulated messages can only be seen with the key that created them.\n\nPT: Ver um SMS\n\n`operationId`: `sms.messages.get`"
},
"response": []
},
{
"id": "45ec3a8b-1670-5921-b9fc-f754a69594c0",
"name": "See the SMS balance",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/balance",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"balance"
]
},
"description": "Needs `sms:read`. The balance is real in both modes.\n\nPT: Ver o saldo de SMS\n\n`operationId`: `sms.balance.get`"
},
"response": []
},
{
"id": "e954f8a7-9c95-5bcc-9af9-2b48bfc8a449",
"name": "List the SMS senders",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/senders",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"senders"
]
},
"description": "Needs `sms:read`. The free sender always comes first, with `free: true`.\n\nPT: Listar os remetentes de SMS\n\n`operationId`: `sms.senders.list`"
},
"response": []
},
{
"id": "4e05911f-f615-599e-b828-622cbdc97e36",
"name": "Request a sender",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/senders",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"senders"
]
},
"description": "Needs `sms:write`. Up to 11 letters, numbers and spaces, at most 30 in the account, one request per name and country. The registration fee is paid as in the account dashboard: the request is created as `payment_pending` and the response brings `payment_url`, the page where it is paid. Once paid, it moves to `documents_needed` and the entity documents are sent in the account dashboard. If the fee was already paid (a request rejected before refund), it goes straight to `documents_needed` and `payment_url` is null. The team then reviews it and registers it with the operators; approval depends on them. Limited to 20 changes per minute.\n\nPT: Pedir um remetente\n\n`operationId`: `sms.senders.create`",
"body": {
"mode": "raw",
"raw": "{\n \"sender\": \"AMINHAMARCA\",\n \"entity\": \"My Company Ltd\",\n \"country\": \"MZ\",\n \"tax_id\": \"123456789\",\n \"purpose\": \"Order updates for our customers.\",\n \"sample\": \"Your order is ready.\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "99fffc94-76ce-541b-8ff0-738f5995b3f0",
"name": "See sending statistics",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/stats",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"stats"
],
"query": [
{
"key": "from",
"value": "",
"description": "First day, `YYYY-MM-DD`.",
"disabled": true
},
{
"key": "to",
"value": "",
"description": "Last day, `YYYY-MM-DD`.",
"disabled": true
}
]
},
"description": "Needs `sms:read`. Totals and one line per day with messages. Without dates, the last 30 days; at most 366 days. Failed, cancelled and simulated messages do not count in `credits_spent`. Scheduled messages that were not charged yet do not count either.\n\nPT: Ver as estatísticas de envio\n\n`operationId`: `sms.stats.get`"
},
"response": []
},
{
"id": "c114ccdc-11c4-5bf5-bf8c-8572dc98975d",
"name": "List templates",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/templates",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"templates"
],
"query": [
{
"key": "category",
"value": "general",
"description": "Only this category.",
"disabled": true
},
{
"key": "language",
"value": "pt",
"description": "Only this language.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `sms:read`. The templates of this account, by name.\n\nPT: Listar os modelos\n\n`operationId`: `sms.templates.list`"
},
"response": []
},
{
"id": "18588d70-1307-5dc3-9b95-54c838d5dd3c",
"name": "Create a template",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/templates",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"templates"
]
},
"description": "Needs `sms:write`. The name must be unique in the account. The text accepts `{$client_name}`, `{$client_first_name}`, `{$client_last_name}`, `{$client_company_name}`, `{$remetente}` and `{$data}`. Limited to 20 changes per minute.\n\nPT: Criar um modelo\n\n`operationId`: `sms.templates.create`",
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Invoice reminder\",\n \"text\": \"Hi {$client_first_name}, your invoice is due today.\",\n \"category\": \"notice\",\n \"language\": \"pt\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "d6b68206-0860-5070-b7c4-0ddf3f111c16",
"name": "See a template",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/templates/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"templates",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the template."
}
]
},
"description": "Needs `sms:read`. A template of this account.\n\nPT: Ver um modelo\n\n`operationId`: `sms.templates.get`"
},
"response": []
},
{
"id": "7fc17e57-ecbb-5362-b576-33570038b785",
"name": "Change a template",
"request": {
"method": "PATCH",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/templates/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"templates",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the template."
}
]
},
"description": "Needs `sms:write`. Send only the fields to change. Limited to 20 changes per minute.\n\nPT: Alterar um modelo\n\n`operationId`: `sms.templates.update`",
"body": {
"mode": "raw",
"raw": "{\n \"text\": \"Hi {$client_first_name}, your invoice is due tomorrow.\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "562687b0-a2c5-578c-b267-341319b9dee2",
"name": "Delete a template",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/templates/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"templates",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the template."
}
]
},
"description": "Needs `sms:write`. Standard templates that are deleted do not come back. Limited to 20 changes per minute.\n\nPT: Apagar um modelo\n\n`operationId`: `sms.templates.delete`"
},
"response": []
},
{
"id": "d0fcc428-743e-5596-b4e2-b2595475588e",
"name": "See a sender request",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/senders/:sender",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"senders",
":sender"
],
"variable": [
{
"key": "sender",
"value": "",
"description": "The `id` of the request or the name of the sender."
}
]
},
"description": "Needs `sms:read`. By `id` or by name. `note` is the note from our team. The free sender always answers as `approved`.\n\nPT: Ver um pedido de remetente\n\n`operationId`: `sms.senders.get`"
},
"response": []
},
{
"id": "17f9e8c5-bf72-5aff-9f70-85aaa4885575",
"name": "List numbers that do not receive",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/opt-outs",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"opt-outs"
],
"query": [
{
"key": "number",
"value": "",
"description": "Only this number, with or without the country code.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `sms:read`. The numbers this account blocked, masked. Use `number` to check one.\n\nPT: Listar os números que não recebem\n\n`operationId`: `sms.opt_outs.list`"
},
"response": []
},
{
"id": "5266a889-0d89-5ac0-83dc-6b4ce2d17d81",
"name": "Stop sending to a number",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/opt-outs",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"opt-outs"
]
},
"description": "Needs `sms:write`. From now on, sending to this number answers `422` with `number_opted_out`. To take a number off the list, ask support. Limited to 20 changes per minute.\n\nPT: Deixar de enviar a um número\n\n`operationId`: `sms.opt_outs.create`",
"body": {
"mode": "raw",
"raw": "{\n \"number\": \"+258841234567\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "6a548430-87d3-559b-9baf-598160147219",
"name": "Cancel a scheduled SMS",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/sms/messages/:id/cancel",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"messages",
":id",
"cancel"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` returned when sending."
}
]
},
"description": "Needs `sms:write`. Only messages of this account that are still `scheduled` can be cancelled. If the credits were already charged they go back to the balance, and `credits_returned` says how many; a scheduled message is usually only charged when it goes out, so there is often nothing to return. A message that already went out, is going out, or was already cancelled returns `409` with `details.reason` set to `not_cancellable`. With a Sandbox key, or while the API is in preparation, it checks everything and changes nothing. Send `Idempotency-Key` so a retry gives the same answer.\n\nPT: Cancelar um SMS agendado\n\n`operationId`: `sms.messages.cancel`"
},
"response": []
},
{
"id": "935400d1-254f-5f6c-a83e-7d7dd62783bf",
"name": "List contacts",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/contacts",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"contacts"
],
"query": [
{
"key": "group",
"value": "",
"description": "Only the contacts in this group (its id).",
"disabled": true
},
{
"key": "search",
"value": "",
"description": "Name, company, email or part of the number.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `sms:read`. The SMS contacts of this account, by name, with their groups.\n\nPT: Listar os contactos\n\n`operationId`: `sms.contacts.list`"
},
"response": []
},
{
"id": "18779c89-413f-5238-8fe4-55b38112b837",
"name": "Create a contact",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/contacts",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"contacts"
]
},
"description": "Needs `sms:write`. The phone number must be unique in the account. Up to 20,000 contacts. Limited to 20 changes per minute.\n\nPT: Criar um contacto\n\n`operationId`: `sms.contacts.create`",
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Ana Silva\",\n \"company\": \"Example Ltd\",\n \"phone\": \"+258841234567\",\n \"email\": \"ana@example.com\",\n \"groups\": [\n 9\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "e3b27a9e-efc1-510c-9376-1b5c07609fa5",
"name": "Get a contact",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/contacts/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"contacts",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the contact."
}
]
},
"description": "Needs `sms:read`.\n\nPT: Ver um contacto\n\n`operationId`: `sms.contacts.get`"
},
"response": []
},
{
"id": "4379d7a9-59c1-513a-b43d-5577b13e7b92",
"name": "Update a contact",
"request": {
"method": "PATCH",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/contacts/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"contacts",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the contact."
}
]
},
"description": "Needs `sms:write`. Send only the fields to change; `groups` replaces the current groups. Limited to 20 changes per minute.\n\nPT: Alterar um contacto\n\n`operationId`: `sms.contacts.update`",
"body": {
"mode": "raw",
"raw": "{\n \"notes\": \"Call after 10am\",\n \"groups\": [\n 9,\n 12\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "75cf5217-316f-509b-9a99-0e62dcc623c3",
"name": "Delete a contact",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/contacts/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"contacts",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the contact."
}
]
},
"description": "Needs `sms:write`. Messages already sent stay in the history. Limited to 20 changes per minute.\n\nPT: Apagar um contacto\n\n`operationId`: `sms.contacts.delete`"
},
"response": []
},
{
"id": "31ff9efb-707d-5046-a8c8-af13f9ec585e",
"name": "List contact groups",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/groups",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"groups"
],
"query": [
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `sms:read`. The groups of this account, by name, with how many contacts each one has.\n\nPT: Listar os grupos de contactos\n\n`operationId`: `sms.groups.list`"
},
"response": []
},
{
"id": "1a0d340a-fb32-5481-82aa-dd0c14056d1f",
"name": "Create a contact group",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/groups",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"groups"
]
},
"description": "Needs `sms:write`. The name must be unique in the account. Up to 100 groups. Limited to 20 changes per minute.\n\nPT: Criar um grupo de contactos\n\n`operationId`: `sms.groups.create`",
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Customers\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "32c816cd-b3f1-5781-b979-5bf321761173",
"name": "Get a contact group",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/groups/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"groups",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the group."
}
]
},
"description": "Needs `sms:read`.\n\nPT: Ver um grupo de contactos\n\n`operationId`: `sms.groups.get`"
},
"response": []
},
{
"id": "ed108026-c25a-500e-b68d-bf01b4b34baf",
"name": "Rename a contact group",
"request": {
"method": "PATCH",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/groups/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"groups",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the group."
}
]
},
"description": "Needs `sms:write`. Limited to 20 changes per minute.\n\nPT: Mudar o nome de um grupo\n\n`operationId`: `sms.groups.update`",
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"VIP customers\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "1bd540df-fe6d-50a0-ba8a-c4dcbb1f47f5",
"name": "Delete a contact group",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/groups/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"groups",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the group."
}
]
},
"description": "Needs `sms:write`. The contacts are not deleted: they just leave the group. Limited to 20 changes per minute. A group that triggers an E-mail Center automation (a welcome series) is refused with `409 group_triggers_automation`, which names the automation in `details` (`automation_id`, `automation_name`): delete the automation first, on the Automation tab of E-mail Center. Turning it off is not enough, because it would be left pointing at a group that no longer exists.\n\nPT: Apagar um grupo de contactos\n\n`operationId`: `sms.groups.delete`"
},
"response": []
},
{
"id": "554c754f-948b-575e-952a-43514b3fabe0",
"name": "Send a verification code",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/sms/otp",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"otp"
]
},
"description": "Needs `sms:write`. We generate the code, send it by SMS straight away and keep only its hash. Verify it with POST /v1/sms/otp/{id}/verify. A new code for the same number cancels the previous one. No limits by default; you can set a maximum per number per hour in PUT /v1/sms/otp-settings. The SMS costs credits like any other; with a sandbox key nothing is sent or charged and the response includes `code`, so you can test the verification.\n\nPT: Enviar um código de verificação\n\n`operationId`: `sms.otp.create`",
"body": {
"mode": "raw",
"raw": "{\n \"number\": \"+258841234567\",\n \"sender\": \"MYBRAND\",\n \"length\": 6,\n \"expires_in\": 5\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "c5f75b22-80d9-5e3c-a54e-c05ae56d02b5",
"name": "Get a verification code",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/otp/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"otp",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` returned when the code was sent (otp_...)."
}
]
},
"description": "Needs `sms:read`. The status, never the code.\n\nPT: Ver um código de verificação\n\n`operationId`: `sms.otp.get`"
},
"response": []
},
{
"id": "c046db5a-6808-59f2-8289-fe6f1cd3ef03",
"name": "Verify a code",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/otp/:id/verify",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"otp",
":id",
"verify"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` returned when the code was sent (otp_...)."
}
]
},
"description": "Needs `sms:write`. Compares the code the user typed in constant time. `valid` says if it matched; each wrong code uses one attempt and, with none left, the status becomes `failed`. Spaces are ignored. A verified, expired or failed code always answers `valid: false`.\n\nPT: Conferir um código\n\n`operationId`: `sms.otp.verify`",
"body": {
"mode": "raw",
"raw": "{\n \"code\": \"482913\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "f752511d-4d30-54f3-8951-3f42fc51bbac",
"name": "Cancel a verification code",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/otp/:id/cancel",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"otp",
":id",
"cancel"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` returned when the code was sent (otp_...)."
}
]
},
"description": "Needs `sms:write`. A pending code stops being valid. The SMS already sent is not refunded.\n\nPT: Cancelar um código de verificação\n\n`operationId`: `sms.otp.cancel`"
},
"response": []
},
{
"id": "768817be-d9ae-5fe6-b71b-7caf08350662",
"name": "Send messages in a batch",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/sms/messages/batch",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"messages",
"batch"
]
},
"description": "Needs `sms:write`. No limit on the number of messages (only the request size, 1 MB, counts), each with its own number and, if you like, its own text; `sender`, `text` and `send_at` apply to all. Each message follows the same rules as POST /v1/sms/messages and `results` says what happened to each one (`error` uses the same reasons). Messages join the queue (sent every minute); up to 20 go out straight away. Without enough credits or at the daily limit, the rest are rejected. With a sandbox key nothing is sent or charged.\n\nPT: Enviar mensagens em lote\n\n`operationId`: `sms.messages.batch`",
"body": {
"mode": "raw",
"raw": "{\n \"sender\": \"MYBRAND\",\n \"text\": \"Your order is ready for pickup.\",\n \"messages\": [\n {\n \"number\": \"+258841234567\"\n },\n {\n \"number\": \"+258869876543\",\n \"text\": \"Your order is ready in Maputo.\"\n },\n {\n \"number\": \"12\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "34e4cf54-350a-53a2-8aae-0a80e32568ef",
"name": "Resend a verification code",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/otp/:id/resend",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"otp",
":id",
"resend"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` returned when the code was sent (otp_...)."
}
]
},
"description": "Needs `sms:write`. Sends a NEW code on the same request (`id` stays the same) and restarts the validity; wrong attempts already used stay used. No limit on resends by default; a wait between resends and an hourly limit per number apply only if you set them in PUT /v1/sms/otp-settings. Only for `pending` or `expired` codes. With a sandbox key the response includes `code`.\n\nPT: Reenviar um código de verificação\n\n`operationId`: `sms.otp.resend`"
},
"response": []
},
{
"id": "22cc74c0-603d-5a38-94a4-21662a8cbc8d",
"name": "Get the delivery webhook",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/webhook",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"webhook"
]
},
"description": "Needs `sms:read`. The address, the events and the last delivery; never the secret. We POST a JSON body `{\"event\": \"sms.sent\" | \"sms.failed\", \"created_at\", \"data\": {...}}` (`data` has the same fields as GET /v1/sms/messages/{id}) to your HTTPS address on port 443, only for messages created after the webhook was saved. Check the `X-Webhook-Signature: t=<unix time>,v1=<hex>` header: v1 is HMAC-SHA256 of `t + \".\" + raw body` with your secret; reject old timestamps. Answer with any 2xx within 5 seconds; otherwise we retry after 1 min, 5 min, 30 min, 2 h and 6 h. Internal or private addresses are refused.\n\nPT: Ver o webhook de entregas\n\n`operationId`: `sms.webhook.get`"
},
"response": []
},
{
"id": "2c53b5ce-364d-5447-ae93-accd8e6bfcd2",
"name": "Save the delivery webhook",
"request": {
"method": "PUT",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/webhook",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"webhook"
]
},
"description": "Needs `sms:write`. Creates or changes the address. The `secret` is shown only when the webhook is created or with `rotate_secret: true`: keep it. We POST a JSON body `{\"event\": \"sms.sent\" | \"sms.failed\", \"created_at\", \"data\": {...}}` (`data` has the same fields as GET /v1/sms/messages/{id}) to your HTTPS address on port 443, only for messages created after the webhook was saved. Check the `X-Webhook-Signature: t=<unix time>,v1=<hex>` header: v1 is HMAC-SHA256 of `t + \".\" + raw body` with your secret; reject old timestamps. Answer with any 2xx within 5 seconds; otherwise we retry after 1 min, 5 min, 30 min, 2 h and 6 h. Internal or private addresses are refused. Events chosen in PUT /v1/webhooks are kept.\n\nPT: Gravar o webhook de entregas\n\n`operationId`: `sms.webhook.set`",
"body": {
"mode": "raw",
"raw": "{\n \"url\": \"https://example.com/webhooks/sms\",\n \"events\": [\n \"sms.sent\",\n \"sms.failed\"\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "05969b89-4c7f-52bd-b753-84db294d0026",
"name": "Delete the delivery webhook",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/webhook",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"webhook"
]
},
"description": "Needs `sms:write`. Pending deliveries are cancelled.\n\nPT: Apagar o webhook de entregas\n\n`operationId`: `sms.webhook.delete`"
},
"response": []
},
{
"id": "13c17175-d73a-56c7-b4dc-b9d647433811",
"name": "Test the delivery webhook",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/webhook/test",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"webhook",
"test"
]
},
"description": "Needs `sms:write`. Sends a signed `webhook.test` event to the saved address now and returns what your server answered.\n\nPT: Testar o webhook de entregas\n\n`operationId`: `sms.webhook.test`"
},
"response": []
},
{
"id": "ffd0f03c-6646-592c-a53b-0d67253c41fa",
"name": "Get the verification code rules",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/otp-settings",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"otp-settings"
]
},
"description": "Needs `sms:read`. By default there are no limits (0).\n\nPT: Ver as regras dos códigos\n\n`operationId`: `sms.otp.settings.get`"
},
"response": []
},
{
"id": "5d117bdd-12a3-5172-b84f-74cbff0df501",
"name": "Set the verification code rules",
"request": {
"method": "PUT",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/otp-settings",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"otp-settings"
]
},
"description": "Needs `sms:write`. Send only what you want to change; 0 removes the limit. The same rules can be changed in the account dashboard, on the API keys page.\n\nPT: Definir as regras dos códigos\n\n`operationId`: `sms.otp.settings.set`",
"body": {
"mode": "raw",
"raw": "{\n \"resend_wait_seconds\": 30,\n \"max_codes_per_number_per_hour\": 5\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "9edc4b61-1490-5687-941a-f5a4e4b48b12",
"name": "SMS credit prices",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/sms/credits/prices",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"credits",
"prices"
]
},
"description": "Needs `sms:read`. The price of each credit by quantity, in the currency of the account: the whole quantity takes the price of its tier. Tax is added on the invoice (`tax_added`).\n\nPT: Preços dos créditos de SMS\n\n`operationId`: `sms.credits.prices`"
},
"response": []
},
{
"id": "1b2333d3-6138-5481-88fe-029c62699ad4",
"name": "Buy SMS credits",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/sms/credits/purchase",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"sms",
"credits",
"purchase"
]
},
"description": "Needs `billing:purchase`. Also needs `sms:write`. Buys `quantity` credits at the price of GET /v1/sms/credits/prices. The credits enter the SMS balance with the payment and an account without SMS turned on is turned on, as in your account. Credits do not take `promo_code`. Paid with credit only, within the spending limit of the key; the `Idempotency-Key` header is required and purchases are limited to 5 per minute. The price is the same as in your account: if the invoice does not match it, the purchase is undone and nothing is charged. `amount` is the invoice total with tax, `subtotal` is without tax and `tax` is the tax; in Sandbox nothing is created, `amount` comes without tax and `tax` is `null`. With the account profile incomplete it answers `409` with `profile_incomplete`.\n\nPT: Comprar créditos de SMS\n\n`operationId`: `sms.credits.purchase`",
"body": {
"mode": "raw",
"raw": "{\n \"quantity\": 1000\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
}
]
},
{
"id": "b3799e84-0e41-5c48-ae16-4cf7ba5728c5",
"name": "email-center",
"description": "Transactional email: sender domains, sending, templates, suppressions, statistics and webhooks. Only for accounts with E-mail Center active.\n\nPT: E-mail transaccional: domínios remetentes, envio, modelos, bloqueados, estatísticas e webhooks. Só para contas com o E-mail Center activo.",
"item": [
{
"id": "81c08672-d05a-5618-8846-dcea92d4d8e8",
"name": "Send an email",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/email/messages",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"messages"
]
},
"description": "Needs `email_center:write`. Each recipient (to, cc and bcc, up to 50) is one email and one credit. Addresses on the suppression list are removed and listed in `suppressed`; if none is left, the API answers 422 `all_recipients_suppressed`. Without `send_at` the email goes out straight away and the answer has the real status. With a sandbox key, or while E-mail Center is in test mode, nothing is sent or charged: the email is `simulated` and the simulated events are recorded (`bounce@example.com` simulates a bounce, `complaint@example.com` a complaint). Send `Idempotency-Key` so a retry never sends twice.\n\nPT: Enviar um e-mail\n\n`operationId`: `email.messages.create`",
"body": {
"mode": "raw",
"raw": "{\n \"from\": \"Example Ltd <notifications@example.com>\",\n \"to\": [\n \"ana@example.org\"\n ],\n \"reply_to\": \"support@example.com\",\n \"template_id\": 7,\n \"variables\": {\n \"name\": \"Ana\",\n \"order\": \"1234\"\n },\n \"headers\": {\n \"X-Order-Id\": \"1234\",\n \"X-Campaign\": \"order-ready\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "5cde58af-3ac7-5ad6-b5a5-73ccbc8d4a42",
"name": "List emails",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/messages",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"messages"
],
"query": [
{
"key": "status",
"value": "",
"description": "One of: queued, scheduled, sending, sent, delivered, bounced, complained, failed, simulated, cancelled.",
"disabled": true
},
{
"key": "from",
"value": "",
"description": "From this day, YYYY-MM-DD.",
"disabled": true
},
{
"key": "to",
"value": "",
"description": "Up to this day, YYYY-MM-DD.",
"disabled": true
},
{
"key": "recipient",
"value": "",
"description": "Only emails to this address (to, cc or bcc).",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `email_center:read`. Newest first, without the content (see GET /v1/email/messages/{id}).\n\nPT: Listar os e-mails\n\n`operationId`: `email.messages.list`"
},
"response": []
},
{
"id": "aac867b8-08a7-5e0a-ac00-f602657547ee",
"name": "Send emails in a batch",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/email/messages/batch",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"messages",
"batch"
]
},
"description": "Needs `email_center:write`. No limit on the number of messages, only on the request size (8 MB). Fields outside `messages` (from, subject, html, text, template_id, reply_to, send_at) apply to all; each message can change them and has its own `to` and `variables`. Each one follows the rules of POST /v1/email/messages and `results` says what happened to it (`error` uses the same reasons). Up to 20 go out straight away; the rest join the queue (every minute). Without credits or at the daily limit, the rest are rejected.\n\nPT: Enviar e-mails em lote\n\n`operationId`: `email.messages.batch`",
"body": {
"mode": "raw",
"raw": "{\n \"from\": \"Example Ltd <notifications@example.com>\",\n \"subject\": \"Hello {{name}}\",\n \"text\": \"Hi {{name}}, your invoice is ready.\",\n \"messages\": [\n {\n \"to\": \"ana@example.org\",\n \"variables\": {\n \"name\": \"Ana\"\n }\n },\n {\n \"to\": \"rui@example.org\",\n \"variables\": {\n \"name\": \"Rui\"\n }\n },\n {\n \"to\": \"not-an-email\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "52770957-dfdf-5136-8081-f63d530635bb",
"name": "See an email",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/messages/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"messages",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` returned when the email was sent."
}
]
},
"description": "Needs `email_center:read`. With the events of each recipient and the content (kept for 30 days by default; then `html` and `text` are null).\n\nPT: Ver um e-mail\n\n`operationId`: `email.messages.get`"
},
"response": []
},
{
"id": "a816bd82-ff04-5905-ae8e-f543a3e99c0d",
"name": "Cancel a scheduled email",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/email/messages/:id/cancel",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"messages",
":id",
"cancel"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` returned when the email was sent."
}
]
},
"description": "Needs `email_center:write`. Only `scheduled` emails that have not gone out yet; credits already taken go back (`credits_returned`). Otherwise 409 `not_cancellable`.\n\nPT: Cancelar um e-mail agendado\n\n`operationId`: `email.messages.cancel`"
},
"response": []
},
{
"id": "dd2a6180-8208-591b-b9b4-e0e9afd4245c",
"name": "See the email balance",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/balance",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"balance"
]
},
"description": "Needs `email_center:read`. The balance of emails bought, plus the two monthly limits of the account, the different recipients and the total emails, each with what is used, what is left and the day they start again. `test_mode` is true while E-mail Center does not send for real.\n\nPT: Ver o saldo de e-mail\n\n`operationId`: `email.balance.get`"
},
"response": []
},
{
"id": "977ec9a7-bdb1-568a-bc23-adb017cb7422",
"name": "See email statistics",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/stats",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"stats"
],
"query": [
{
"key": "from",
"value": "",
"description": "YYYY-MM-DD.",
"disabled": true
},
{
"key": "to",
"value": "",
"description": "YYYY-MM-DD.",
"disabled": true
}
]
},
"description": "Needs `email_center:read`. By status and by day. Delivered, bounced and complained count recipients; the rates are over the recipients. Default: the last 30 days; at most 366.\n\nPT: Ver as estatísticas de e-mail\n\n`operationId`: `email.stats.get`"
},
"response": []
},
{
"id": "b75121e7-bd5b-52b0-9a01-8f23d06f0d39",
"name": "List sender domains",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/domains",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"domains"
],
"query": [
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `email_center:read`. In alphabetical order.\n\nPT: Listar os domínios remetentes\n\n`operationId`: `email.domains.list`"
},
"response": []
},
{
"id": "9c94628d-daaa-5edf-8970-410130737213",
"name": "Add a sender domain",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/email/domains",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"domains"
]
},
"description": "Needs `email_center:write`. Add the records of `dns_records` to the DNS of the domain: one DKIM TXT record with our key (required), SPF and DMARC (recommended) and, with MAIL FROM, one CNAME. Then call verify; DNS can take a few hours. Only verified domains can send, from any address of the domain or of a subdomain. Free mailbox domains (gmail.com and others) are refused. With a sandbox key nothing is saved.\n\nPT: Juntar um domínio remetente\n\n`operationId`: `email.domains.create`",
"body": {
"mode": "raw",
"raw": "{\n \"domain\": \"example.com\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "884a32e0-34ac-503b-9233-292ef43e7044",
"name": "See a sender domain",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/domains/:domain",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"domains",
":domain"
],
"variable": [
{
"key": "domain",
"value": "",
"description": "The domain name (example.com) or its `id`."
}
]
},
"description": "Needs `email_center:read`. With the DNS records to add and whether each one was found at the last check.\n\nPT: Ver um domínio remetente\n\n`operationId`: `email.domains.get`"
},
"response": []
},
{
"id": "4ee155b8-1b7c-509f-b742-d2350f887fc9",
"name": "Delete a sender domain",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/domains/:domain",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"domains",
":domain"
],
"variable": [
{
"key": "domain",
"value": "",
"description": "The domain name (example.com) or its `id`."
}
]
},
"description": "Needs `email_center:write`. The domain can no longer send. Emails already sent stay in the log.\n\nPT: Apagar um domínio remetente\n\n`operationId`: `email.domains.delete`"
},
"response": []
},
{
"id": "e8b66e09-4554-5562-b34a-90679ed8408b",
"name": "Verify a sender domain",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/domains/:domain/verify",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"domains",
":domain",
"verify"
],
"variable": [
{
"key": "domain",
"value": "",
"description": "The domain name (example.com) or its `id`."
}
]
},
"description": "Needs `email_center:write`. Checks the DKIM records now and returns the new status. With a sandbox key the result is not saved.\n\nPT: Verificar um domínio remetente\n\n`operationId`: `email.domains.verify`"
},
"response": []
},
{
"id": "22e392e7-5a45-54d2-81a4-af1a4dd27b83",
"name": "Set the MAIL FROM subdomain",
"request": {
"method": "PUT",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/domains/:domain/mail-from",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"domains",
":domain",
"mail-from"
],
"variable": [
{
"key": "domain",
"value": "",
"description": "The domain name (example.com) or its `id`."
}
]
},
"description": "Needs `email_center:write`. Optional: a subdomain of yours for the return path (for example `bounce`), so SPF aligns with your domain for DMARC. An empty value goes back to ours. Add the MX and TXT records that appear in `dns_records`.\n\nPT: Definir o subdomínio do MAIL FROM\n\n`operationId`: `email.domains.mail_from`",
"body": {
"mode": "raw",
"raw": "{\n \"subdomain\": \"bounce\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "96882ef5-1908-55c3-988d-97dd094fc3b7",
"name": "List email templates",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/templates",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"templates"
],
"query": [
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `email_center:read`. By name.\n\nPT: Listar os modelos de e-mail\n\n`operationId`: `email.templates.list`"
},
"response": []
},
{
"id": "52e8c81e-4ec6-59a7-9f1b-df89af9e1ba5",
"name": "Create an email template",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/email/templates",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"templates"
]
},
"description": "Needs `email_center:write`. Subject and html or text, with {{name}} placeholders filled from `variables` when sending.\n\nPT: Criar um modelo de e-mail\n\n`operationId`: `email.templates.create`",
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Order ready\",\n \"subject\": \"Your order {{order}} is ready\",\n \"html\": \"<p>Hello {{name}}, your order {{order}} is ready.</p>\",\n \"text\": \"Hello {{name}}, your order {{order}} is ready.\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "3e91f278-53fd-5807-b99c-f780707ecd59",
"name": "See an email template",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/templates/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"templates",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The template `id` (the same as `template_id` when sending)."
}
]
},
"description": "Needs `email_center:read`. With the variables it uses.\n\nPT: Ver um modelo de e-mail\n\n`operationId`: `email.templates.get`"
},
"response": []
},
{
"id": "c4abb29b-4ffd-54b1-9360-8fb08f070a1a",
"name": "Change an email template",
"request": {
"method": "PATCH",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/templates/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"templates",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The template `id` (the same as `template_id` when sending)."
}
]
},
"description": "Needs `email_center:write`. Only the fields sent change.\n\nPT: Alterar um modelo de e-mail\n\n`operationId`: `email.templates.update`",
"body": {
"mode": "raw",
"raw": "{\n \"subject\": \"Order {{order}}: ready for pickup\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "29739e1e-ed65-571c-bea5-949c2a864f6d",
"name": "Delete an email template",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/templates/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"templates",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The template `id` (the same as `template_id` when sending)."
}
]
},
"description": "Needs `email_center:write`. Emails already sent are not affected.\n\nPT: Apagar um modelo de e-mail\n\n`operationId`: `email.templates.delete`"
},
"response": []
},
{
"id": "69c3d58a-8506-5b39-809f-2b5814806e7d",
"name": "List suppressed addresses",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/suppressions",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"suppressions"
],
"query": [
{
"key": "reason",
"value": "",
"description": "bounce, complaint or manual.",
"disabled": true
},
{
"key": "email",
"value": "",
"description": "One address.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `email_center:read`. Addresses that never receive emails from this account: permanent bounces and complaints enter on their own; you can add others.\n\nPT: Listar os endereços bloqueados\n\n`operationId`: `email.suppressions.list`"
},
"response": []
},
{
"id": "e11bc24b-566b-5ae1-9263-e9c7889adab7",
"name": "Suppress an address",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/email/suppressions",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"suppressions"
]
},
"description": "Needs `email_center:write`. Emails to it are removed before sending and never charged.\n\nPT: Bloquear um endereço\n\n`operationId`: `email.suppressions.create`",
"body": {
"mode": "raw",
"raw": "{\n \"email\": \"ana@example.org\",\n \"note\": \"Asked to stop\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "ce88d330-496c-5f8e-9a85-486ef16ac02d",
"name": "Remove a suppressed address",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/suppressions/:email",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"suppressions",
":email"
],
"variable": [
{
"key": "email",
"value": "",
"description": "The address, URL-encoded."
}
]
},
"description": "Needs `email_center:write`. The address goes in the path, URL-encoded (`ana%40example.org`).\n\nPT: Desbloquear um endereço\n\n`operationId`: `email.suppressions.delete`"
},
"response": []
},
{
"id": "8ea9635e-90dc-50cd-90d2-c0f13e10138e",
"name": "Get the email webhook",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/webhook",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"webhook"
]
},
"description": "Needs `email_center:read`. The address, the events and the last delivery; never the secret. We POST `{\"event\": \"email.delivered\", \"created_at\", \"data\": {\"id\", \"event_id\", \"recipient\", \"detail\", \"from\", \"subject\", \"simulated\"}}` to your HTTPS address on port 443, one call per event and recipient, only for events after the webhook was saved. Check `X-Webhook-Signature: t=<unix time>,v1=<hex>`: v1 is HMAC-SHA256 of `t + \".\" + raw body` with your secret. Answer 2xx within 5 seconds; otherwise we retry after 1 min, 5 min, 30 min, 2 h and 6 h. This webhook is separate from the SMS one.\n\nPT: Ver o webhook de e-mail\n\n`operationId`: `email.webhook.get`"
},
"response": []
},
{
"id": "f0c7547c-e8fc-5ef5-a8e8-ae5b1220f7f1",
"name": "Save the email webhook",
"request": {
"method": "PUT",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/webhook",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"webhook"
]
},
"description": "Needs `email_center:write`. The `secret` is shown only when the webhook is created or with `rotate_secret: true`. We POST `{\"event\": \"email.delivered\", \"created_at\", \"data\": {\"id\", \"event_id\", \"recipient\", \"detail\", \"from\", \"subject\", \"simulated\"}}` to your HTTPS address on port 443, one call per event and recipient, only for events after the webhook was saved. Check `X-Webhook-Signature: t=<unix time>,v1=<hex>`: v1 is HMAC-SHA256 of `t + \".\" + raw body` with your secret. Answer 2xx within 5 seconds; otherwise we retry after 1 min, 5 min, 30 min, 2 h and 6 h. This webhook is separate from the SMS one.\n\nPT: Gravar o webhook de e-mail\n\n`operationId`: `email.webhook.set`",
"body": {
"mode": "raw",
"raw": "{\n \"url\": \"https://example.com/webhooks/email\",\n \"events\": [\n \"email.delivered\",\n \"email.bounced\",\n \"email.complained\"\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "21a39a60-7f0a-53e6-bb28-8202901b1abc",
"name": "Delete the email webhook",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/webhook",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"webhook"
]
},
"description": "Needs `email_center:write`. Pending deliveries are cancelled.\n\nPT: Apagar o webhook de e-mail\n\n`operationId`: `email.webhook.delete`"
},
"response": []
},
{
"id": "5dd607e3-1c4e-5749-bc2e-f2bbf4481b47",
"name": "Test the email webhook",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/webhook/test",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"webhook",
"test"
]
},
"description": "Needs `email_center:write`. Sends a signed `webhook.test` event to the saved address now and returns what your server answered.\n\nPT: Testar o webhook de e-mail\n\n`operationId`: `email.webhook.test`"
},
"response": []
},
{
"id": "538d397a-fb5b-5c59-96d3-5451e08e2ff4",
"name": "List campaigns",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/campaigns",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"campaigns"
],
"query": [
{
"key": "status",
"value": "",
"description": "draft, scheduled, sending, sent, cancelled or automation.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `email_center:read`. Newest first, without the blocks.\n\nPT: Listar as campanhas\n\n`operationId`: `email.campaigns.list`"
},
"response": []
},
{
"id": "89962b30-e4d0-54ba-8e55-3760dd6bb4cb",
"name": "Create a campaign",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/email/campaigns",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"campaigns"
]
},
"description": "Needs `email_center:write`. Creates a draft. Send `blocks`, or `template` for a ready template. Variables: {{first_name}}, {{name}}, {{company}}, {{email}}. With a sandbox key nothing is saved.\n\nPT: Criar uma campanha\n\n`operationId`: `email.campaigns.create`",
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"November news\",\n \"template\": \"comercio\",\n \"from\": \"news@example.com\",\n \"from_name\": \"Example Ltd\",\n \"target\": {\n \"groups\": [\n 3\n ]\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "b99f13a2-fbdf-5e1c-8882-7021ade1060c",
"name": "Generate a campaign with AI",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/campaigns/generate",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"campaigns",
"generate"
]
},
"description": "Needs `email_center:write`. Describe what you want to send; the answer has a subject, a preheader and blocks, which you can then send to POST /v1/email/campaigns. Nothing is saved. 503 `ai_unavailable` if AI is off; counts towards the daily AI limit.\n\nPT: Gerar uma campanha com IA\n\n`operationId`: `email.campaigns.generate`",
"body": {
"mode": "raw",
"raw": "{\n \"description\": \"20% off all plans until Friday, for existing customers.\",\n \"sector\": \"tecnologia\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "2ea22b5c-c516-5793-8d05-f0c01cd34912",
"name": "See a campaign",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/campaigns/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"campaigns",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The campaign `id`."
}
]
},
"description": "Needs `email_center:read`. With the blocks and the audience.\n\nPT: Ver uma campanha\n\n`operationId`: `email.campaigns.get`"
},
"response": []
},
{
"id": "31a1760c-4d86-52f4-ad29-783e83c9be93",
"name": "Change a campaign",
"request": {
"method": "PATCH",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/campaigns/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"campaigns",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The campaign `id`."
}
]
},
"description": "Needs `email_center:write`. Only drafts and automation emails; only the fields sent change.\n\nPT: Alterar uma campanha\n\n`operationId`: `email.campaigns.update`",
"body": {
"mode": "raw",
"raw": "{\n \"subject\": \"Last days of our offers\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "47789527-210e-59cb-bcd7-a00cd32c7b5f",
"name": "Delete a campaign",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/campaigns/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"campaigns",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The campaign `id`."
}
]
},
"description": "Needs `email_center:write`. Only drafts, and automation emails that no longer belong to any automation. An email that is a step of an automation is refused with `409 campaign_belongs_to_automation`, which names the automation and the step in `details`: delete the automation, or take the email out of the series, on the Automation tab of E-mail Center. Turning the automation off is not enough, because the step would be left pointing at an email that no longer exists.\n\nPT: Apagar uma campanha\n\n`operationId`: `email.campaigns.delete`"
},
"response": []
},
{
"id": "de7aabcd-495e-5c7e-a25c-f3affe2d6f77",
"name": "Check a campaign for spam",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/campaigns/:id/spam-check",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"campaigns",
":id",
"spam-check"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The campaign `id`."
}
]
},
"description": "Needs `email_center:read`. Simple rules (subject in capitals, spam words, little text, only images, shortened links, sender not verified). From `blocks_sending_at` points the campaign cannot be sent.\n\nPT: Verificar a campanha contra spam\n\n`operationId`: `email.campaigns.spam_check`"
},
"response": []
},
{
"id": "953e83e4-64e9-588e-b7b9-5325f5f8b268",
"name": "Send a campaign now",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/email/campaigns/:id/send",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"campaigns",
":id",
"send"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The campaign `id`."
}
]
},
"description": "Needs `email_center:write`. Only subscribed contacts with an email address, not on the suppression list, receive it; each one is one credit (taken now and returned for those that do not go out). Every email carries an unsubscribe link and the `List-Unsubscribe` header, plus a tracking pixel and signed redirect links for the statistics. A campaign whose spam check score reaches the limit is refused (422 `spam_score_too_high`). With a sandbox key, or while E-mail Center is in test mode, nothing is sent or charged and the numbers are simulated (`simulated: true`).\n\nPT: Enviar a campanha já\n\n`operationId`: `email.campaigns.send`"
},
"response": []
},
{
"id": "78141fda-4d8d-5086-b3d0-c0d2919befd7",
"name": "Schedule a campaign",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/email/campaigns/:id/schedule",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"campaigns",
":id",
"schedule"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The campaign `id`."
}
]
},
"description": "Needs `email_center:write`. `send_at` in ISO 8601 with the time zone, up to 30 days ahead. Only subscribed contacts with an email address, not on the suppression list, receive it; each one is one credit (taken now and returned for those that do not go out). Every email carries an unsubscribe link and the `List-Unsubscribe` header, plus a tracking pixel and signed redirect links for the statistics. A campaign whose spam check score reaches the limit is refused (422 `spam_score_too_high`). With a sandbox key, or while E-mail Center is in test mode, nothing is sent or charged and the numbers are simulated (`simulated: true`).\n\nPT: Agendar a campanha\n\n`operationId`: `email.campaigns.schedule`",
"body": {
"mode": "raw",
"raw": "{\n \"send_at\": \"2026-11-20T09:00:00+02:00\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "62e3535a-7dd4-5d8b-97ec-922323516213",
"name": "Cancel a campaign",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/email/campaigns/:id/cancel",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"campaigns",
":id",
"cancel"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The campaign `id`."
}
]
},
"description": "Needs `email_center:write`. Scheduled or still sending: what has not gone out does not go, and its credits come back (`credits_returned`).\n\nPT: Cancelar a campanha\n\n`operationId`: `email.campaigns.cancel`"
},
"response": []
},
{
"id": "f99eaaac-8c74-55ba-86b6-6542a6547d9d",
"name": "See campaign statistics",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/campaigns/:id/stats",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"campaigns",
":id",
"stats"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The campaign `id`."
}
]
},
"description": "Needs `email_center:read`. Delivered, opens (pixel), clicks (signed links), unsubscribes and bounces; rates over delivered emails. `simulated` marks example numbers from test mode.\n\nPT: Ver as estatísticas da campanha\n\n`operationId`: `email.campaigns.stats`"
},
"response": []
},
{
"id": "d1e2eac7-f5be-5eb1-98ac-223a43de0cc3",
"name": "List campaign recipients",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/campaigns/:id/recipients",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"campaigns",
":id",
"recipients"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The campaign `id`."
}
],
"query": [
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `email_center:read`. What each contact did: opened, clicked, unsubscribed or bounced.\n\nPT: Listar os destinatários da campanha\n\n`operationId`: `email.campaigns.recipients`"
},
"response": []
},
{
"id": "469de28b-4800-5c5f-b296-096b527cb701",
"name": "Send a test of a campaign",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/email/campaigns/:id/test",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"campaigns",
":id",
"test"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The campaign `id`."
}
]
},
"description": "Needs `email_center:write`. One email to one address, with example variables and «[Test]» in the subject; it costs one credit, like any email.\n\nPT: Enviar um teste da campanha\n\n`operationId`: `email.campaigns.test`",
"body": {
"mode": "raw",
"raw": "{\n \"to\": \"ana@example.org\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "adbfadcf-0a2c-57c7-9b76-656a2e5f1384",
"name": "List email contacts",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/contacts",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"contacts"
],
"query": [
{
"key": "group",
"value": "",
"description": "Group id.",
"disabled": true
},
{
"key": "subscription",
"value": "",
"description": "subscribed, unsubscribed or suppressed.",
"disabled": true
},
{
"key": "opened",
"value": "",
"description": "yes or no.",
"disabled": true
},
{
"key": "clicked",
"value": "",
"description": "yes or no.",
"disabled": true
},
{
"key": "joined_from",
"value": "",
"description": "YYYY-MM-DD.",
"disabled": true
},
{
"key": "joined_to",
"value": "",
"description": "YYYY-MM-DD.",
"disabled": true
},
{
"key": "q",
"value": "",
"description": "Search.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `email_center:read`. The SMS contacts that have an email address and the email-only contacts, without repeated addresses, with the subscription status.\n\nPT: Listar os contactos de e-mail\n\n`operationId`: `email.contacts.list`"
},
"response": []
},
{
"id": "31e5524d-6491-501e-9545-434cb165bbe9",
"name": "Add an email contact",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/email/contacts",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"contacts"
]
},
"description": "Needs `email_center:write`. If the address already belongs to an SMS contact, that contact is used and joins the groups. You confirm that the person agreed to receive your emails.\n\nPT: Juntar um contacto de e-mail\n\n`operationId`: `email.contacts.create`",
"body": {
"mode": "raw",
"raw": "{\n \"email\": \"ana@example.org\",\n \"name\": \"Ana\",\n \"groups\": [\n 3\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "f72e1145-72a2-5432-a38f-e3c6fa2d9be1",
"name": "See an email contact",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/contacts/:email",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"contacts",
":email"
],
"variable": [
{
"key": "email",
"value": "",
"description": "The address, URL-encoded."
}
]
},
"description": "Needs `email_center:read`. With the latest campaigns it received and what it did.\n\nPT: Ver um contacto de e-mail\n\n`operationId`: `email.contacts.get`"
},
"response": []
},
{
"id": "ebce19b4-e927-5ed4-81bf-ded3490e690d",
"name": "Change a subscription",
"request": {
"method": "PUT",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/contacts/:email/subscription",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"contacts",
":email",
"subscription"
],
"variable": [
{
"key": "email",
"value": "",
"description": "The address, URL-encoded."
}
]
},
"description": "Needs `email_center:write`. `subscribed` or `unsubscribed`. Contacts who unsubscribed through the link should only be subscribed again with their consent.\n\nPT: Mudar a subscrição\n\n`operationId`: `email.contacts.subscription`",
"body": {
"mode": "raw",
"raw": "{\n \"status\": \"unsubscribed\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "85de6385-c5a7-5247-b9c6-ab3c831c2fa6",
"name": "List contact groups",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/groups",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"groups"
]
},
"description": "Needs `email_center:read`. The same groups as the SMS contacts, with how many have an email address.\n\nPT: Listar os grupos de contactos\n\n`operationId`: `email.groups.list`"
},
"response": []
},
{
"id": "2594b400-82b5-5c2a-ab82-7627b52886b3",
"name": "List subscription forms",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/forms",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"forms"
],
"query": [
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `email_center:read`. The subscription forms of the account, newest first, with the code to embed, the direct link and the sign-up counts. Read only: forms are created and changed in the account dashboard, on the Forms tab of E-mail Center.\n\nPT: Listar os formulários de subscrição\n\n`operationId`: `email.forms.list`"
},
"response": []
},
{
"id": "306ac71f-c547-511c-ace3-cf6f8be54e35",
"name": "List the sign-ups of a form",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/forms/:id/signups",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"forms",
":id",
"signups"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The form `id`."
}
],
"query": [
{
"key": "status",
"value": "",
"description": "pending, confirmed or expired.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `email_center:read`. Newest first. Forms use double opt-in: a sign-up only joins the contact list after the person confirms, through the link sent by email or by SMS. Until then it is `pending` and comes masked, without the name. Confirmed sign-ups bring the proof of consent: `confirmed_at`, `confirmation_ip` and `consent_text`. A sign-up that is not confirmed until `expires_at` becomes `expired` and its data is erased.\n\nPT: Listar as inscrições de um formulário\n\n`operationId`: `email.forms.signups`"
},
"response": []
},
{
"id": "284469c5-9db2-5c90-acc7-9f8599d172f6",
"name": "List automations",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/automations",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"automations"
],
"query": [
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `email_center:read`. The automations of the account, newest first, each with its goal, its trigger, whether it is on and what it has sent. Automations are created and deleted in the account dashboard, on the Automations tab of E-mail Center, where you also write the emails of each one; the API reads them and turns them on and off. Each automation email counts as a campaign email: it uses one credit, goes through the same providers, and does not leave a domain that is not verified. Whoever unsubscribed or is on the suppression list never receives it.\n\nPT: Listar as automações\n\n`operationId`: `email.automations.list`"
},
"response": []
},
{
"id": "3924079e-c0c3-5afb-8fbb-e5eca808a61e",
"name": "Get an automation",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/automations/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"automations",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The automation `id`."
}
]
},
"description": "Needs `email_center:read`. The same as the list, plus the emails of the series, in the order they go out, and the three caps that always apply.\n\nPT: Ver uma automação\n\n`operationId`: `email.automations.get`"
},
"response": []
},
{
"id": "b1f991a4-e4aa-5879-9d14-e289f74b0842",
"name": "List what an automation has done",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/automations/:id/activity",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"automations",
":id",
"activity"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The automation `id`."
}
],
"query": [
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `email_center:read`. Every email this automation sent, newest first, with who received it, which email of the series it was and what the person did with it. Nobody gets the same email of the same automation twice. An email that was not sent comes with the reason in `status`: `suppressed` is someone who unsubscribed or is blocked.\n\nPT: Listar o que uma automação já fez\n\n`operationId`: `email.automations.activity`"
},
"response": []
},
{
"id": "842ee8a7-cca5-5b6e-a423-6f9c241ce0ee",
"name": "Turn an automation on",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/email/automations/:id/enable",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"automations",
":id",
"enable"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The automation `id`."
}
]
},
"description": "Needs `email_center:write`. Before turning it on we check what the account dashboard checks: every email of the series has a subject and content, and the sender is on a verified domain. If something is missing the answer is `422`, with the field. If every automation is held for a moment, the answer is `409 automations_stopped`: try again in a while. Turning on an automation that is already on changes nothing. Each automation email counts as a campaign email: it uses one credit, goes through the same providers, and does not leave a domain that is not verified. Whoever unsubscribed or is on the suppression list never receives it.\n\nPT: Ligar uma automação\n\n`operationId`: `email.automations.enable`"
},
"response": []
},
{
"id": "234e8179-fc90-53bf-88d0-b62b804ea962",
"name": "Turn an automation off",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/email/automations/:id/disable",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"automations",
":id",
"disable"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The automation `id`."
}
]
},
"description": "Needs `email_center:write`. It stops sending right away, and nothing is deleted: the emails of the series, the content and the history stay as they are, and you can turn it on again later. Turning off is never refused, so you can always stop an automation of yours.\n\nPT: Desligar uma automação\n\n`operationId`: `email.automations.disable`"
},
"response": []
},
{
"id": "24e9f1ae-da5c-5535-b87c-17b93f244869",
"name": "Get the SMTP Relay status",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/relay",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"relay"
]
},
"description": "Needs `email_center:read`. The SMTP Relay lets a program that already speaks SMTP send through us without changing its code: point it at `hostname` on one of the `ports`, with an SMTP credential of yours. The sender may be any address of a verified domain (see GET /v1/email/domains), and each recipient uses one credit, like any other email.\n\nPT: Ver o estado do SMTP Relay\n\n`operationId`: `email.relay.get`"
},
"response": []
},
{
"id": "b9efb741-4f47-5ab4-85ed-2c409b892b92",
"name": "List the SMTP credentials",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/relay/credentials",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"relay",
"credentials"
],
"query": [
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `email_center:read`. The SMTP credentials of the account, newest first, with their state and when each one last sent something. Read only, and the password is never in the answer. Credentials are created and revoked in the account dashboard, on the SMTP tab of E-mail Center, because the password is shown only once, at the moment it is born.\n\nPT: Listar as credenciais SMTP\n\n`operationId`: `email.relay.credentials`"
},
"response": []
},
{
"id": "019a6db8-7756-5866-9cfa-f65beaeaff07",
"name": "Email credit prices",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/email/credits/prices",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"credits",
"prices"
]
},
"description": "Needs `email_center:read`. The price per thousand emails for each sending type, in tiers that add up (as on the pricing pages), and how many credits each email uses. Tax is added on the invoice (`tax_added`).\n\nPT: Preços dos créditos de e-mail\n\n`operationId`: `email.credits.prices`"
},
"response": []
},
{
"id": "cdb1dad6-b692-5582-ab9e-73d8b95a8c11",
"name": "Buy email credits",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/email/credits/purchase",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"email",
"credits",
"purchase"
]
},
"description": "Needs `billing:purchase`. Also needs `email_center:write`. Buys `quantity` emails of the sending type in `usage` (`transactional`, `marketing` or `smtp-relay`); the balance receives `credits`, the emails times the credits of that type, rounded up. Credits do not take `promo_code`. Paid with credit only, within the spending limit of the key; the `Idempotency-Key` header is required and purchases are limited to 5 per minute. The price is the same as in your account: if the invoice does not match it, the purchase is undone and nothing is charged. `amount` is the invoice total with tax, `subtotal` is without tax and `tax` is the tax; in Sandbox nothing is created, `amount` comes without tax and `tax` is `null`. With the account profile incomplete it answers `409` with `profile_incomplete`.\n\nPT: Comprar créditos de e-mail\n\n`operationId`: `email.credits.purchase`",
"body": {
"mode": "raw",
"raw": "{\n \"usage\": \"transactional\",\n \"quantity\": 2000\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
}
]
},
{
"id": "dc88b2bf-979b-515c-a136-de453d014e58",
"name": "account",
"description": "Details of the account, its contacts and users.\n\nPT: Dados da conta, contactos e utilizadores.",
"item": [
{
"id": "b01ff14c-664d-577b-a445-a57e77bf1a21",
"name": "See the account",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/account",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"account"
]
},
"description": "Needs `account:read`. Never returns passwords or card data.\n\nPT: Ver a conta\n\n`operationId`: `account.get`"
},
"response": []
},
{
"id": "eb8afac7-66d3-5da6-aacd-46d9340275df",
"name": "List the contacts",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/account/contacts",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"account",
"contacts"
],
"query": [
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `account:read`. The contacts registered on the account.\n\nPT: Listar os contactos\n\n`operationId`: `account.contacts.list`"
},
"response": []
},
{
"id": "9e74b1e0-f660-5f4a-babc-7becc0227c0d",
"name": "List the users",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/account/users",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"account",
"users"
],
"query": [
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `account:read`. The people with access to the account. The owner comes first.\n\nPT: Listar os utilizadores\n\n`operationId`: `account.users.list`"
},
"response": []
}
]
},
{
"id": "659edea7-700e-51fd-aff9-94d41a94fd7f",
"name": "catalog",
"description": "What is for sale, with prices.\n\nPT: O que está à venda, com preços.",
"item": [
{
"id": "86de0ce1-1de1-57f2-90e7-c8a320c876fb",
"name": "List the products",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/catalog/products",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"catalog",
"products"
],
"query": [
{
"key": "currency",
"value": "",
"description": "Currency code. The default is the currency of the account.",
"disabled": true
},
{
"key": "group_id",
"value": "",
"description": "Only the products of this group.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `catalog:read`. Only what is on sale, with the prices of each billing cycle. `kind` says what the product is and `purchasable` whether it can be bought with POST /v1/services/purchase. The details, with the options and their prices, are in GET /v1/catalog/products/{id}. With a group discount (Reseller Program or another client group), prices come with the discount and the public ones in list_price (list_prices in the extensions); discount says the percentage.\n\nPT: Listar os produtos\n\n`operationId`: `catalog.products.list`"
},
"response": []
},
{
"id": "457262b1-1e36-577f-a0d0-7e38c7c6dc05",
"name": "List the domain extensions",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/catalog/tlds",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"catalog",
"tlds"
],
"query": [
{
"key": "currency",
"value": "",
"description": "Currency code. The default is the currency of the account.",
"disabled": true
},
{
"key": "extension",
"value": "",
"description": "Only this extension, with or without the dot.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `catalog:read`. Register, renew and transfer prices per number of years. A number of years that is missing is not available. With a group discount (Reseller Program or another client group), prices come with the discount and the public ones in list_price (list_prices in the extensions); discount says the percentage.\n\nPT: Listar as extensões de domínio\n\n`operationId`: `catalog.tlds.list`"
},
"response": []
},
{
"id": "0649e32d-532a-5cc1-9c6d-23d4833a513d",
"name": "List the currencies",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/catalog/currencies",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"catalog",
"currencies"
]
},
"description": "Needs `catalog:read`. The currencies accepted on the `currency` parameter.\n\nPT: Listar as moedas\n\n`operationId`: `catalog.currencies.list`"
},
"response": []
},
{
"id": "f913d610-47a3-5767-ae65-0d58f155acb0",
"name": "List the billing cycles",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/catalog/billing-cycles",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"catalog",
"billing-cycles"
]
},
"description": "Needs `catalog:read`. The names used on prices and services.\n\nPT: Listar os ciclos de pagamento\n\n`operationId`: `catalog.billing_cycles.list`"
},
"response": []
},
{
"id": "ebefb78e-e109-51c0-bb38-1688468bc0ce",
"name": "Get a product",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/catalog/products/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"catalog",
"products",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The product `id` from the catalog."
}
],
"query": [
{
"key": "currency",
"value": "",
"description": "Optional currency code, such as `USD`.",
"disabled": true
}
]
},
"description": "Needs `catalog:read`. The product with its billing cycles (only those with a price), the options the customer chooses and the price of each choice per cycle. With `currency`, prices come in that currency. `purchasable` says whether it can be bought through the API; if not, `not_purchasable_reason` says why and `portal_url` opens it in your account. Hidden products answer `404`. With a group discount (Reseller Program or another client group), prices come with the discount and the public ones in list_price (list_prices in the extensions); discount says the percentage.\n\nPT: Ver um produto\n\n`operationId`: `catalog.products.get`"
},
"response": []
}
]
},
{
"id": "df5160ca-3c28-55d0-b366-b0d277c2d98d",
"name": "domains",
"description": "The domains of the account.\n\nPT: Os domínios da conta.",
"item": [
{
"id": "24a4c31b-0305-57de-92ff-ee6567550677",
"name": "List the domains",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/domains",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"domains"
],
"query": [
{
"key": "status",
"value": "pending",
"description": "Only results in this status.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `domains:read`. The domains of the account, the next to expire first.\n\nPT: Listar os domínios\n\n`operationId`: `domains.list`"
},
"response": []
},
{
"id": "626a46c9-c55f-5fee-a16c-eed5d9b778a1",
"name": "See a domain",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/domains/:domain",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"domains",
":domain"
],
"variable": [
{
"key": "domain",
"value": "",
"description": "The domain name or its `id`."
}
]
},
"description": "Needs `domains:read`. By name or by `id`.\n\nPT: Ver um domínio\n\n`operationId`: `domains.get`"
},
"response": []
},
{
"id": "55d5d54a-ca53-59ab-8580-92ccee5a7bba",
"name": "Check a domain name",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/domains/availability?domain=",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"domains",
"availability"
],
"query": [
{
"key": "domain",
"value": "",
"description": "The domain name. (required)",
"disabled": false
}
]
},
"description": "Needs `domains:read`. Limited to 30 per minute. `unknown` means the answer could not be confirmed. `portal_only` means this name is handled in the account dashboard. `prices` lists the register and renew price for each number of years, from 1 to 10 (only the years with a price). With a group discount (Reseller Program or another client group), prices come with the discount and the public ones in list_price (list_prices in the extensions); discount says the percentage.\n\nPT: Consultar um nome de domínio\n\n`operationId`: `domains.availability`"
},
"response": []
},
{
"id": "5d4aa830-d04f-5d00-81f4-66c149710dc6",
"name": "Register a domain",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/domains/register",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"domains",
"register"
]
},
"description": "Needs `billing:purchase`. Also needs `domains:write` and the `Idempotency-Key` header. Paid with credit only, within the spending limit of the key. Answers `202`: follow it with `GET /v1/actions/{id}`. Limited to 5 per minute. On the domain of the account email, or of the email of a user of the account, it answers `409` with the code `account_email_domain`: make the change in the account dashboard. Accepts `promo_code`.\n\nPT: Registar um domínio\n\n`operationId`: `domains.register`",
"body": {
"mode": "raw",
"raw": "{\n \"domain\": \"example.co.mz\",\n \"years\": 2\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "b4ce09a7-8abf-5ecc-ba44-67b5f58c1b01",
"name": "Transfer a domain to us",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/domains/transfer",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"domains",
"transfer"
]
},
"description": "Needs `billing:purchase`. Also needs `domains:write` and the `Idempotency-Key` header. Paid with credit only, within the spending limit of the key. Answers `202`: follow it with `GET /v1/actions/{id}`. Limited to 5 per minute. Accepts `promo_code`.\n\nPT: Transferir um domínio para nós\n\n`operationId`: `domains.transfer`",
"body": {
"mode": "raw",
"raw": "{\n \"domain\": \"example.com\",\n \"transfer_code\": \"CODIGO-DO-DOMINIO\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "e03bc79e-c311-55aa-8fd4-339b3847deb3",
"name": "Renew a domain",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/domains/:domain/renew",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"domains",
":domain",
"renew"
],
"variable": [
{
"key": "domain",
"value": "",
"description": "The domain name or its `id`."
}
]
},
"description": "Needs `billing:purchase`. Also needs `domains:write` and the `Idempotency-Key` header. Paid with credit only, within the spending limit of the key. Answers `202`: follow it with `GET /v1/actions/{id}`. Limited to 5 per minute. If there is already an unpaid invoice for the domain, it answers `409` with `invoice_id`. Accepts `promo_code`.\n\nPT: Renovar um domínio\n\n`operationId`: `domains.renew`",
"body": {
"mode": "raw",
"raw": "{\n \"years\": 2\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "b186bf40-f38f-58e1-b22c-c39468641a72",
"name": "See the nameservers",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/domains/:domain/nameservers",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"domains",
":domain",
"nameservers"
],
"variable": [
{
"key": "domain",
"value": "",
"description": "The domain name or its `id`."
}
]
},
"description": "Needs `domains:read`. Reads them from the registry. Limit: 30 per minute, per account. The answer can come from a copy up to 60 seconds old, which does not count towards the limit.\n\nPT: Ver os nameservers\n\n`operationId`: `domains.nameservers.get`"
},
"response": []
},
{
"id": "e2bb39b3-ced9-5580-8e53-bcdc4b1e6de2",
"name": "Change the nameservers",
"request": {
"method": "PUT",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/domains/:domain/nameservers",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"domains",
":domain",
"nameservers"
],
"variable": [
{
"key": "domain",
"value": "",
"description": "The domain name or its `id`."
}
]
},
"description": "Needs `domains:write`. From 2 to 5. Limited to 20 changes per minute. On the domain of the account email, or of the email of a user of the account, it answers `409` with the code `account_email_domain`: make the change in the account dashboard.\n\nPT: Mudar os nameservers\n\n`operationId`: `domains.nameservers.update`",
"body": {
"mode": "raw",
"raw": "{\n \"nameservers\": [\n \"ns1.example.com\",\n \"ns2.example.com\"\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "defabc88-57a4-58fc-9e96-6357df9e0f2f",
"name": "See the transfer lock",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/domains/:domain/lock",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"domains",
":domain",
"lock"
],
"variable": [
{
"key": "domain",
"value": "",
"description": "The domain name or its `id`."
}
]
},
"description": "Needs `domains:read`. `null` means the registry does not say. Limit: 30 per minute, per account. The answer can come from a copy up to 60 seconds old, which does not count towards the limit.\n\nPT: Ver o bloqueio de transferência\n\n`operationId`: `domains.lock.get`"
},
"response": []
},
{
"id": "ab69239b-fe67-5875-83d0-aa640c662ffe",
"name": "Change the transfer lock",
"request": {
"method": "PUT",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/domains/:domain/lock",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"domains",
":domain",
"lock"
],
"variable": [
{
"key": "domain",
"value": "",
"description": "The domain name or its `id`."
}
]
},
"description": "Needs `domains:write`. Turns the lock on or off.\n\nPT: Mudar o bloqueio de transferência\n\n`operationId`: `domains.lock.update`",
"body": {
"mode": "raw",
"raw": "{\n \"locked\": true\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "f45dd531-904a-5304-8f4b-6ef8f4dc3408",
"name": "Change auto-renewal",
"request": {
"method": "PUT",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/domains/:domain/auto-renew",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"domains",
":domain",
"auto-renew"
],
"variable": [
{
"key": "domain",
"value": "",
"description": "The domain name or its `id`."
}
]
},
"description": "Needs `domains:write`. Turns the renewal invoices of the domain on or off.\n\nPT: Mudar a renovação automática\n\n`operationId`: `domains.auto_renew.update`",
"body": {
"mode": "raw",
"raw": "{\n \"auto_renew\": true\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "52e65f89-fe5e-56a8-a9ec-870847f2287f",
"name": "See the domain contacts",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/domains/:domain/contacts",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"domains",
":domain",
"contacts"
],
"variable": [
{
"key": "domain",
"value": "",
"description": "The domain name or its `id`."
}
]
},
"description": "Needs `domains:read`. As the registry has them. The fields depend on the extension. Limit: 30 per minute, per account. Always read live.\n\nPT: Ver os contactos do domínio\n\n`operationId`: `domains.contacts.get`"
},
"response": []
},
{
"id": "5382e75c-a62e-5ff0-b598-ce85c02153b1",
"name": "Request the transfer code",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/domains/:domain/transfer-code",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"domains",
":domain",
"transfer-code"
],
"variable": [
{
"key": "domain",
"value": "",
"description": "The domain name or its `id`."
}
]
},
"description": "Needs `domains:transfer_code`. The code never comes in the response: it goes to the email of the account or of the domain owner. Limited to 3 per hour.\n\nPT: Pedir o código de transferência\n\n`operationId`: `domains.transfer_code.request`",
"body": {
"mode": "raw",
"raw": "{\n \"confirm\": \"example.co.mz\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
}
]
},
{
"id": "4a7afe29-aa1d-5128-bcec-6bea4a69ef56",
"name": "whois",
"description": "Free WHOIS lookup of a domain name.\n\nPT: Consulta WHOIS gratuita de um nome de domínio.",
"item": [
{
"id": "00f42c04-0f71-55cf-8bb5-2d6f9958608c",
"name": "Look up several domain names (WHOIS)",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/whois?domains=",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"whois"
],
"query": [
{
"key": "domains",
"value": "",
"description": "Up to 10 domain names, separated by commas. (required)",
"disabled": false
},
{
"key": "currency",
"value": "",
"description": "Optional. One of the brand currencies, such as USD. Without it: the currency of the account (with a key) or the brand currency. Another code returns 422 with the accepted ones in details.allowed.",
"disabled": true
},
{
"key": "language",
"value": "pt",
"description": "Optional. pt or en: the language of the website links and the free plan name, when the brand has that combination.",
"disabled": true
}
]
},
"description": "Free, up to 10 domains per request, with or without a key. Each domain counts 1 in the hourly limit. Same fields as the single lookup, without alternatives, registrar_contact, dnssec and contacts. A name with a problem comes with status error in its place and does not stop the others.\n\nPT: Consultar o WHOIS de vários domínios\n\n`operationId`: `whois.list`",
"auth": {
"type": "noauth"
}
},
"response": []
},
{
"id": "5e0bd680-5c0b-5996-8a80-7f8449810a51",
"name": "Look up a domain name (WHOIS)",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/whois/:domain",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"whois",
":domain"
],
"variable": [
{
"key": "domain",
"value": "",
"description": "The domain name."
}
],
"query": [
{
"key": "currency",
"value": "",
"description": "Optional. One of the brand currencies, such as USD. Without it: the currency of the account (with a key) or the brand currency. Another code returns 422 with the accepted ones in details.allowed.",
"disabled": true
},
{
"key": "language",
"value": "pt",
"description": "Optional. pt or en: the language of the website links and the free plan name, when the brand has that combination.",
"disabled": true
}
]
},
"description": "Free. Works without a key: 60 per hour per IP. With a key of the account (any permission, Sandbox or Production): 1,000 per hour per account (resellers: 10,000). Shows all the data the public WHOIS has. The price can come in any currency of the brand (currency), also without an account.\n\nPT: Consultar o WHOIS de um domínio\n\n`operationId`: `whois.get`",
"auth": {
"type": "noauth"
}
},
"response": []
}
]
},
{
"id": "22af1253-e5cb-590a-8cf6-db1685eb89ee",
"name": "services",
"description": "The services of the account: hosting, servers and others.\n\nPT: Os serviços da conta: hospedagem, servidores e outros.",
"item": [
{
"id": "f1744caf-77df-51c7-b5ee-f358998a27b7",
"name": "List the services",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services"
],
"query": [
{
"key": "status",
"value": "pending",
"description": "Only results in this status.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `hosting:read`. All the services of the account, the newest first. While a service is unpaid, `domain` and `username` may come as `null`.\n\nPT: Listar os serviços\n\n`operationId`: `services.list`"
},
"response": []
},
{
"id": "c74a623a-6859-5163-9b8e-96e1d5c09e0f",
"name": "See a service",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the service."
}
]
},
"description": "Needs `hosting:read`. Never returns passwords.\n\nPT: Ver um serviço\n\n`operationId`: `services.get`"
},
"response": []
},
{
"id": "866ca3e8-18a7-5a6b-9b49-a795a163058b",
"name": "Buy a plan",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/services/purchase",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
"purchase"
]
},
"description": "Needs `billing:purchase`. Buys a plan of the catalog: hosting, reseller hosting, radio, VPS and servers. Also needs the write permission of the product area: `hosting:write` for hosting, reseller hosting and radio, `vps:write` for servers. Only for products with `purchasable`. Options not sent in `config_options` take the first choice, as in your account; Windows with a cPanel licence, or Plesk with WordPress, answer `422` with `incompatible_options`. Hosting takes `domain`, a domain of the account; without it, the account gets a temporary address that can be changed later. Payment opens the service as in your account: it is followed in GET /v1/services/{id}. Paid with credit only, within the spending limit of the key; the `Idempotency-Key` header is required and purchases are limited to 5 per minute. The price is the same as in your account: if the invoice does not match it, the purchase is undone and nothing is charged. `amount` is the invoice total with tax, `subtotal` is without tax and `tax` is the tax; in Sandbox nothing is created, `amount` comes without tax and `tax` is `null`. With the account profile incomplete it answers `409` with `profile_incomplete`. Accepts `promo_code`.\n\nPT: Comprar um plano\n\n`operationId`: `services.purchase`",
"body": {
"mode": "raw",
"raw": "{\n \"product_id\": 38,\n \"billing_cycle\": \"annually\",\n \"domain\": \"mozbiz.co.mz\",\n \"config_options\": {\n \"64\": 385\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
}
]
},
{
"id": "09efb7f8-b69f-5371-b925-463893b0e66b",
"name": "billing",
"description": "Invoices, credit and transactions.\n\nPT: Facturas, saldo e transacções.",
"item": [
{
"id": "b70e9f55-2e9a-597a-8551-989828fa6074",
"name": "List the invoices",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/invoices",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"invoices"
],
"query": [
{
"key": "status",
"value": "unpaid",
"description": "Only results in this status.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `billing:read`. The newest first. `total` includes what was paid with credit; `balance_due` is what is still to pay.\n\nPT: Listar as facturas\n\n`operationId`: `invoices.list`"
},
"response": []
},
{
"id": "7f5ef57b-8004-5a60-8ef5-9b965d372b7e",
"name": "See an invoice",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/invoices/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"invoices",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the invoice."
}
]
},
"description": "Needs `billing:read`. With the lines of the invoice.\n\nPT: Ver uma factura\n\n`operationId`: `invoices.get`"
},
"response": []
},
{
"id": "1c7d591d-7e7c-5c56-952e-f66b81ee1d7c",
"name": "See the credit",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/billing/credit",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"billing",
"credit"
]
},
"description": "Needs `billing:read`. The credit available on the account.\n\nPT: Ver o saldo\n\n`operationId`: `billing.credit.get`"
},
"response": []
},
{
"id": "2380245e-afab-5969-98ba-c682e924690c",
"name": "List the transactions",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/billing/transactions",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"billing",
"transactions"
],
"query": [
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `billing:read`. The payments and refunds of the account, the newest first.\n\nPT: Listar as transacções\n\n`operationId`: `billing.transactions.list`"
},
"response": []
},
{
"id": "38b5fa2d-1892-5d91-a2ef-9f3d52b5dc5d",
"name": "Get the PDF of an invoice",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/invoices/:id/pdf",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"invoices",
":id",
"pdf"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the invoice."
}
]
},
"description": "Needs `billing:read`. The PDF comes in `content`, in base64. When `pdf_available` is `false`, use `url`; `reason` says why: `internal_text`, `temporary_address`, `not_generated` or `too_large`. Limited to 20 per minute.\n\nPT: Obter o PDF de uma factura\n\n`operationId`: `invoices.pdf`"
},
"response": []
},
{
"id": "19257360-686e-5bbd-b784-2af50f9ec9bf",
"name": "Pay an invoice with credit",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/invoices/:id/pay",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"invoices",
":id",
"pay"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the invoice."
}
]
},
"description": "Needs `billing:pay`. Pays what is still due, with the credit of the account and nothing else. Needs the `Idempotency-Key` header. The invoice total counts towards the spending limit of the key. Limited to 5 per minute, shared with domain purchases. In `conflict`, `details.reason` can be `invoice_not_unpaid`, `credit_not_allowed`, `nothing_to_pay` or `profile_incomplete`.\n\nPT: Pagar uma factura com saldo\n\n`operationId`: `invoices.pay`"
},
"response": []
},
{
"id": "3ed398f4-2311-5ec0-a0ac-913843792a51",
"name": "List the orders",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/orders",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"orders"
],
"query": [
{
"key": "status",
"value": "",
"description": "Filter by status: `pending`, `active`, `cancelled` or `fraud`.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `billing:read`. The most recent first.\n\nPT: Listar as encomendas\n\n`operationId`: `orders.list`"
},
"response": []
},
{
"id": "6376f385-14f3-52ae-a839-2d5099369649",
"name": "See an order",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/orders/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"orders",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the order."
}
]
},
"description": "Needs `billing:read`. With what came in the order: services, domains, addons and upgrades. A temporary address only appears when the service is active.\n\nPT: Ver uma encomenda\n\n`operationId`: `orders.get`"
},
"response": []
},
{
"id": "f44620b9-ae9f-5e43-aeb5-e1924c6408ae",
"name": "List the quotes",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/quotes",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"quotes"
],
"query": [
{
"key": "status",
"value": "",
"description": "Filter by status: `delivered`, `accepted`, `lost` or `dead`.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `billing:read`. Only the quotes delivered to the account.\n\nPT: Listar as cotações\n\n`operationId`: `quotes.list`"
},
"response": []
},
{
"id": "7b2328f0-3aa8-5fb4-b4a2-72a47a486427",
"name": "See a quote",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/quotes/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"quotes",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the quote."
}
]
},
"description": "Needs `billing:read`. With the proposal, the notes for you and the lines.\n\nPT: Ver uma cotação\n\n`operationId`: `quotes.get`"
},
"response": []
},
{
"id": "c207b8c1-c642-5bc9-afc0-8e529c1abad1",
"name": "See the renewal cycles of a service",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/billing-cycles",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"billing-cycles"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the service."
}
]
},
"description": "Needs `billing:read`. Only the cycles on sale, with the price of each renewal. A cycle where a paid option of the service has no price is not on sale. Nothing changes. `blocked_reason` says why it cannot change now: `service_not_active`, `vps_not_supported`, `no_cycles`, `custom_price` or `invoice_open`. With `vps_not_supported` or `custom_price`, `cycles` is empty: handle the change in the account dashboard or with support.\n\nPT: Ver os ciclos de renovação de um serviço\n\n`operationId`: `services.billing_cycles.list`"
},
"response": []
},
{
"id": "8a9a9980-6a1c-5560-890c-686c9bdb62b6",
"name": "Change the cycle of the next renewal",
"request": {
"method": "PUT",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/billing-cycle",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"billing-cycle"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the service."
}
]
},
"description": "Needs `billing:write`. Nothing is charged now and the next due date stays. Give in `expected_amount` the price from the query: if it changed, it answers `409` with `price_changed`. A VPS or server answers `409` with `vps_not_supported`, and a service whose amount differs from the list price of its current cycle answers `409` with `custom_price`: handle these in the account dashboard or with support. Limited to 20 per minute.\n\nPT: Mudar o ciclo da próxima renovação\n\n`operationId`: `services.billing_cycle.update`",
"body": {
"mode": "raw",
"raw": "{\n \"cycle\": \"annually\",\n \"expected_amount\": 3500.0\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "74687e98-f5f2-5aa7-a174-bcee20358b0a",
"name": "Get the upgrade link of a service",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/upgrade-link",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"upgrade-link"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the service."
}
]
},
"description": "Needs `billing:read`. On that page you choose the new plan and see the amount before paying. Nothing changes here.\n\nPT: Obter a ligação de upgrade de um serviço\n\n`operationId`: `services.upgrade_link.get`"
},
"response": []
},
{
"id": "944e17c3-3e88-5ab8-959b-7fe95ee84a02",
"name": "Request the cancellation of a service",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/cancellation",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"cancellation"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the service."
}
]
},
"description": "Needs `services:cancel`. Always at the end of the paid period, never right away. The service stays active until `service_ends_at`. A service with no paid period still running answers `409` with `no_period_end`: ask support. Unpaid invoices of the service can be cancelled. Limited to 5 per hour.\n\nPT: Pedir o cancelamento de um serviço\n\n`operationId`: `services.cancellation.create`",
"body": {
"mode": "raw",
"raw": "{\n \"reason\": \"I no longer need this plan\",\n \"confirm\": \"example.co.mz\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "f39b5629-aaae-5a25-82bf-9690340a64e8",
"name": "List plan upgrades",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/upgrades",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"upgrades"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The service `id`."
}
]
},
"description": "Needs `billing:read`. The bigger plans this service can move to, the same as in your account, and for each one the cycles equal to or longer than the current one. `amount_today` is what is paid now, without tax: the whole new cycle minus the time left of the period already paid (`credit`). The new cycle starts with the payment and `next_due_date` is the new due date. When `can_upgrade` is `false`, `blocked_reason` says why: `service_not_active`, `no_cycles`, `upgrade_pending` (with `invoice_id`) or `upgrade_not_available`.\n\nPT: Ver as mudanças de plano\n\n`operationId`: `services.upgrades.list`"
},
"response": []
},
{
"id": "c7e59999-e3c5-54c0-b963-ebfc4ac0b9ce",
"name": "Change plan",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/upgrade",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"upgrade"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The service `id`."
}
]
},
"description": "Needs `billing:purchase`. Moves the service to a bigger plan from GET /v1/services/{id}/upgrades, now. Also needs the write permission of the service area (`hosting:write` or `vps:write`). `expected_amount` is the `amount_today` you checked: if it changed, it answers `409` with `price_changed` and nothing is charged. With payment, the plan and the due date change, and an unpaid renewal of the service is no longer needed. Paid with credit only, within the spending limit of the key; the `Idempotency-Key` header is required and purchases are limited to 5 per minute. The price is the same as in your account: if the invoice does not match it, the purchase is undone and nothing is charged. `amount` is the invoice total with tax, `subtotal` is without tax and `tax` is the tax; in Sandbox nothing is created, `amount` comes without tax and `tax` is `null`. With the account profile incomplete it answers `409` with `profile_incomplete`. Accepts `promo_code`.\n\nPT: Mudar de plano\n\n`operationId`: `services.upgrade`",
"body": {
"mode": "raw",
"raw": "{\n \"product_id\": 36,\n \"billing_cycle\": \"annually\",\n \"expected_amount\": 10197.8\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
}
]
},
{
"id": "8514fbe8-c557-540e-ae30-8c398679a0ca",
"name": "support",
"description": "Tickets and departments.\n\nPT: Tickets e departamentos.",
"item": [
{
"id": "0e1f46f4-ca9a-5fdf-8f38-373f472fde2d",
"name": "List the tickets",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/tickets",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"tickets"
],
"query": [
{
"key": "status",
"value": "",
"description": "Only tickets in this status.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `support:read`. The most recent replies first. The `status` values are the slugs of the status names, such as `open`, `answered` and `closed`.\n\nPT: Listar os tickets\n\n`operationId`: `tickets.list`"
},
"response": []
},
{
"id": "1f33bd3d-5b07-5c44-ac6d-7d961089a091",
"name": "Open a ticket",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/tickets",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"tickets"
]
},
"description": "Needs `support:write`. The ticket stays in the name of the account. Needs the `Idempotency-Key` header. Limited to 10 per hour per account. A department that asks for extra data answers `422` with `department_portal_only`: use the account dashboard. In Sandbox, `id` is `null`.\n\nPT: Abrir um ticket\n\n`operationId`: `tickets.create`",
"body": {
"mode": "raw",
"raw": "{\n \"department_id\": 1,\n \"subject\": \"Help with the plan\",\n \"message\": \"I need help with my plan.\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "71d2daee-0261-5f14-9424-71e9d3ae2605",
"name": "See a ticket",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/tickets/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"tickets",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The number of the ticket."
}
]
},
"description": "Needs `support:read`. With all the messages, the oldest first. Attachments come by name only.\n\nPT: Ver um ticket\n\n`operationId`: `tickets.get`"
},
"response": []
},
{
"id": "5366608a-f9b8-5c54-9709-a65ecd262aad",
"name": "List the departments",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/support/departments",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"support",
"departments"
]
},
"description": "Needs `support:read`. The departments that can receive tickets.\n\nPT: Listar os departamentos\n\n`operationId`: `support.departments.list`"
},
"response": []
},
{
"id": "4148cea9-71d9-5fcc-91b8-5fbedd258c74",
"name": "Reply to a ticket",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/tickets/:id/replies",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"tickets",
":id",
"replies"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The ticket number."
}
]
},
"description": "Needs `support:write`. The reply stays in the name of the account. Replying to a closed ticket opens it again. Limited to 30 per hour per account. Send `Idempotency-Key` so that a retry does not reply twice.\n\nPT: Responder a um ticket\n\n`operationId`: `tickets.replies.create`",
"body": {
"mode": "raw",
"raw": "{\n \"message\": \"Thank you, it works now.\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "317eadd5-a418-506c-91e0-fc9d992131f2",
"name": "Close a ticket",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/tickets/:id/close",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"tickets",
":id",
"close"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The ticket number."
}
]
},
"description": "Needs `support:write`. In `conflict`, `details.reason` can be `already_closed` or `closure_not_allowed`.\n\nPT: Fechar um ticket\n\n`operationId`: `tickets.close`"
},
"response": []
},
{
"id": "e0649072-57a5-514c-a1af-5ddb8efe2e97",
"name": "List the Knowledge Base categories",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/kb/categories",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"kb",
"categories"
]
},
"description": "Needs `support:read`. In the language of `Accept-Language`, when there is a translation.\n\nPT: Listar as categorias da Base de Conhecimento\n\n`operationId`: `kb.categories.list`"
},
"response": []
},
{
"id": "98a83b51-e389-5afd-b023-7d4d9028c92f",
"name": "List or search Knowledge Base articles",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/kb/articles",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"kb",
"articles"
],
"query": [
{
"key": "q",
"value": "",
"description": "Words to find, from 2 to 100 characters.",
"disabled": true
},
{
"key": "category",
"value": "",
"description": "The `id` of a category.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `support:read`. Only published articles. Searches are limited to 30 per minute.\n\nPT: Listar ou pesquisar artigos da Base de Conhecimento\n\n`operationId`: `kb.articles.list`"
},
"response": []
},
{
"id": "610e57c5-9cca-521d-a4e0-51c925acb2d4",
"name": "Read a Knowledge Base article",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/kb/articles/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"kb",
"articles",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the article."
}
]
},
"description": "Needs `support:read`. The text comes in HTML. In the language of `Accept-Language`, when there is a translation; `translated` says if there was.\n\nPT: Ler um artigo da Base de Conhecimento\n\n`operationId`: `kb.articles.get`"
},
"response": []
},
{
"id": "3818a22b-ec99-5aa6-86cb-92ab4b1cb3e3",
"name": "List the announcements",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/announcements",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"announcements"
],
"query": [
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `support:read`. Only published announcements, the most recent first.\n\nPT: Listar os anúncios\n\n`operationId`: `announcements.list`"
},
"response": []
},
{
"id": "cd19c23d-0715-51e2-a648-d1a592b06fc9",
"name": "Read an announcement",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/announcements/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"announcements",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the announcement."
}
]
},
"description": "Needs `support:read`. The text comes in HTML.\n\nPT: Ler um anúncio\n\n`operationId`: `announcements.get`"
},
"response": []
}
]
},
{
"id": "683a399f-863b-531c-9be7-ee7f0478830e",
"name": "dns",
"description": "The DNS zone of each domain.\n\nPT: A zona DNS de cada domínio.",
"item": [
{
"id": "bd8307df-1c59-59cc-a431-cfb19bed50b4",
"name": "List the DNS records",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/domains/:domain/dns",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"domains",
":domain",
"dns"
],
"variable": [
{
"key": "domain",
"value": "",
"description": "The domain name or its `id`."
}
]
},
"description": "Needs `dns:read`. `read_only` marks the records that cannot be changed. Limit: 30 per minute, per account. The answer can come from a copy up to 60 seconds old, which does not count towards the limit.\n\nPT: Listar os registos DNS\n\n`operationId`: `dns.records.list`"
},
"response": []
},
{
"id": "e80c1d0e-162c-5190-940c-a6e34b89188f",
"name": "Add a DNS record",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/domains/:domain/dns",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"domains",
":domain",
"dns"
],
"variable": [
{
"key": "domain",
"value": "",
"description": "The domain name or its `id`."
}
]
},
"description": "Needs `dns:write`. A copy of the zone is kept before each change. In a `TXT` record, quotes around the whole value are removed, and quotes or backslashes inside it are refused with `422`. The response shows what stayed in the zone: an `AAAA` address comes in its short form. A CNAME cannot share its name with other records: it answers `409` with `cname_conflict`. If it touches the MX records, or the names they point to, of the domain of the account email or of the email of a user of the account, it answers `409` with the code `account_email_domain`: make the change in the account dashboard.\n\nPT: Adicionar um registo DNS\n\n`operationId`: `dns.records.create`",
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"www\",\n \"type\": \"A\",\n \"value\": \"192.0.2.10\",\n \"ttl\": 14400\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "c7eb4fc7-548d-54bd-bf58-0a23bca693b0",
"name": "Check a DNS record",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/domains/:domain/dns/validate",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"domains",
":domain",
"dns",
"validate"
],
"variable": [
{
"key": "domain",
"value": "",
"description": "The domain name or its `id`."
}
]
},
"description": "Needs `dns:read`. Checks the record without saving anything.\n\nPT: Validar um registo DNS\n\n`operationId`: `dns.records.validate`",
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"www\",\n \"type\": \"A\",\n \"value\": \"192.0.2.10\",\n \"ttl\": 14400\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "0adf4702-44cb-52dd-ba37-8f283e851d75",
"name": "Change a DNS record",
"request": {
"method": "PUT",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/domains/:domain/dns/:record_id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"domains",
":domain",
"dns",
":record_id"
],
"variable": [
{
"key": "domain",
"value": "",
"description": "The domain name or its `id`."
},
{
"key": "record_id",
"value": "",
"description": "The `id` of the record, from the list. It changes when the record changes."
}
]
},
"description": "Needs `dns:write`. The answer brings the new `id`. In a `TXT` record, quotes around the whole value are removed, and quotes or backslashes inside it are refused with `422`. The response shows what stayed in the zone: an `AAAA` address comes in its short form. A CNAME cannot share its name with other records: it answers `409` with `cname_conflict`. If it touches the MX records, or the names they point to, of the domain of the account email or of the email of a user of the account, it answers `409` with the code `account_email_domain`: make the change in the account dashboard.\n\nPT: Alterar um registo DNS\n\n`operationId`: `dns.records.update`",
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"www\",\n \"type\": \"A\",\n \"value\": \"192.0.2.10\",\n \"ttl\": 14400\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "598dba4f-ad41-5ff5-95af-4e68b3f7ecf8",
"name": "Delete a DNS record",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/domains/:domain/dns/:record_id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"domains",
":domain",
"dns",
":record_id"
],
"variable": [
{
"key": "domain",
"value": "",
"description": "The domain name or its `id`."
},
{
"key": "record_id",
"value": "",
"description": "The `id` of the record, from the list. It changes when the record changes."
}
]
},
"description": "Needs `dns:write`. A copy of the zone is kept first. If it touches the MX records, or the names they point to, of the domain of the account email or of the email of a user of the account, it answers `409` with the code `account_email_domain`: make the change in the account dashboard.\n\nPT: Apagar um registo DNS\n\n`operationId`: `dns.records.delete`"
},
"response": []
},
{
"id": "5a1ccb05-f7d7-5831-bd0e-c3a022eac383",
"name": "Reset the DNS zone",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/domains/:domain/dns/reset",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"domains",
":domain",
"dns",
"reset"
],
"variable": [
{
"key": "domain",
"value": "",
"description": "The domain name or its `id`."
}
]
},
"description": "Needs `dns:write`. Leaves the zone without your records. A copy of the zone is kept first. If it touches the MX records, or the names they point to, of the domain of the account email or of the email of a user of the account, it answers `409` with the code `account_email_domain`: make the change in the account dashboard.\n\nPT: Repor a zona DNS\n\n`operationId`: `dns.zone.reset`",
"body": {
"mode": "raw",
"raw": "{\n \"confirm\": \"example.co.mz\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "ab4fda75-ee03-5a61-9e1f-aedb3fa53a1b",
"name": "List the zone backups",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/domains/:domain/dns/backups",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"domains",
":domain",
"dns",
"backups"
],
"variable": [
{
"key": "domain",
"value": "",
"description": "The domain name or its `id`."
}
]
},
"description": "Needs `dns:read`. The last 20 copies, the newest first.\n\nPT: Listar as cópias da zona\n\n`operationId`: `dns.backups.list`"
},
"response": []
},
{
"id": "2f44166e-f7e8-51e5-b1cb-dfab939e85f9",
"name": "Restore a zone backup",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/domains/:domain/dns/backups/:id/restore",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"domains",
":domain",
"dns",
"backups",
":id",
"restore"
],
"variable": [
{
"key": "domain",
"value": "",
"description": "The domain name or its `id`."
},
{
"key": "id",
"value": "",
"description": "The `id` of the backup."
}
]
},
"description": "Needs `dns:write`. Removes what was not in the copy and adds what was missing. `complete` is `false` when a record of the copy could not stay exactly as it was. If it touches the MX records, or the names they point to, of the domain of the account email or of the email of a user of the account, it answers `409` with the code `account_email_domain`: make the change in the account dashboard.\n\nPT: Restaurar uma cópia da zona\n\n`operationId`: `dns.backups.restore`"
},
"response": []
}
]
},
{
"id": "816eef21-bee0-570a-aefd-3303e7a01b10",
"name": "servers",
"description": "VPS servers: state, power, password, backups, reverse DNS and reinstall.\n\nPT: Servidores VPS: estado, energia, senha, cópias, DNS reverso e reinstalação.",
"item": [
{
"id": "2fc9209f-8d8f-5ce9-984d-54b5fcab5878",
"name": "List the servers",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/servers",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"servers"
],
"query": [
{
"key": "status",
"value": "",
"description": "Filter by `active` or `suspended`.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `vps:read`. The active and suspended servers of the account, the newest first. The state comes from a recent copy; `state_checked_at` says when it was read, and is null if it has not been read yet. The states of `power_state` are `running`, `stopped`, `starting`, `stopping`, `restarting`, `reinstalling`, `backing_up` and `unknown`.\n\nPT: Listar os servidores\n\n`operationId`: `servers.list`"
},
"response": []
},
{
"id": "a11c4a40-c1e1-5aa2-9501-f1efb0de8cea",
"name": "See a server",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/servers/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"servers",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the server, the same as the `id` of its service."
}
]
},
"description": "Needs `vps:read`. The state comes from a copy up to 60 seconds old. If it cannot be read now, `state_stale` is true and the last known state is shown. The states of `power_state` are `running`, `stopped`, `starting`, `stopping`, `restarting`, `reinstalling`, `backing_up` and `unknown`.\n\nPT: Ver um servidor\n\n`operationId`: `servers.get`"
},
"response": []
},
{
"id": "2e382086-fe35-5d97-8f36-ae21f724e877",
"name": "See the traffic of the month",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/servers/:id/traffic",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"servers",
":id",
"traffic"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the server, the same as the `id` of its service."
}
]
},
"description": "Needs `vps:read`. Traffic this month, per day and in total, in GB. Comes from a copy up to 5 minutes old.\n\nPT: Ver o tráfego do mês\n\n`operationId`: `servers.traffic.get`"
},
"response": []
},
{
"id": "aac5aaf0-3e5c-52f2-a4fa-1982aa7c8a89",
"name": "List the systems to reinstall",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/servers/:id/operating-systems",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"servers",
":id",
"operating-systems"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the server, the same as the `id` of its service."
}
]
},
"description": "Needs `vps:read`. The systems this server can install. Use the `id` in the reinstall operation.\n\nPT: Listar os sistemas para reinstalar\n\n`operationId`: `servers.operating_systems.list`"
},
"response": []
},
{
"id": "a8135bdb-5dd7-5e00-b9bd-776a32f24f9f",
"name": "List the backups",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/servers/:id/backups",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"servers",
":id",
"backups"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the server, the same as the `id` of its service."
}
]
},
"description": "Needs `vps:read`. `kind` is `automatic` or `on_demand`. A server has at most 4 backups, counting the automatic ones. The `id` changes when the backup changes. Comes from a copy up to 2 minutes old.\n\nPT: Listar as cópias\n\n`operationId`: `servers.backups.list`"
},
"response": []
},
{
"id": "ea473ae7-ef81-51b1-9cd7-a8249fa5ab06",
"name": "Make a backup",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/servers/:id/backups",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"servers",
":id",
"backups"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the server, the same as the `id` of its service."
}
]
},
"description": "Needs `vps:write`. Answers `202`; the backup can take up to 50 minutes to appear. With 4 backups it answers `409` with `backup_limit_reached`.\n\nPT: Fazer uma cópia\n\n`operationId`: `servers.backups.create`",
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"before-update\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "a644c652-9941-5647-9a31-9c9da2752323",
"name": "Start a server",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/servers/:id/start",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"servers",
":id",
"start"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the server, the same as the `id` of its service."
}
]
},
"description": "Needs `vps:write`. Answers `202`. It takes about 2 minutes. If it is already running, `409` with `already_running`.\n\nPT: Ligar um servidor\n\n`operationId`: `servers.start`"
},
"response": []
},
{
"id": "e6040528-39fb-5be3-aea0-229515df4e76",
"name": "Stop a server",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/servers/:id/stop",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"servers",
":id",
"stop"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the server, the same as the `id` of its service."
}
]
},
"description": "Needs `vps:write`. Answers `202`. It can take about 6 minutes. If it is already stopped, `409` with `already_stopped`.\n\nPT: Desligar um servidor\n\n`operationId`: `servers.stop`"
},
"response": []
},
{
"id": "44b7f592-0568-5d9e-963e-b994ab297ff8",
"name": "Restart a server",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/servers/:id/restart",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"servers",
":id",
"restart"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the server, the same as the `id` of its service."
}
]
},
"description": "Needs `vps:write`. Answers `202`. If it is stopped, `409` with `server_stopped`.\n\nPT: Reiniciar um servidor\n\n`operationId`: `servers.restart`"
},
"response": []
},
{
"id": "7663343c-d5bf-572d-99fc-cfbf5e07fbe2",
"name": "Generate a new root password",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/servers/:id/password",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"servers",
":id",
"password"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the server, the same as the `id` of its service."
}
]
},
"description": "Needs `vps:password`. This permission is separate from `vps:write` and off by default, because the answer brings the root password. Needs the name of the server in `confirm`. The server restarts to apply it, and the new password works after that, in 1 to 2 minutes. It appears only in this response: we do not keep it in the API records. Repeating with the same `Idempotency-Key` does not generate another one and returns `password` as null. In Sandbox the password is not real.\n\nPT: Gerar uma nova senha de root\n\n`operationId`: `servers.password.change`",
"body": {
"mode": "raw",
"raw": "{\n \"confirm\": \"web1.example.co.mz\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "40177d82-d509-5280-a6c4-949c80158c58",
"name": "See the reverse DNS",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/servers/:id/reverse-dns",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"servers",
":id",
"reverse-dns"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the server, the same as the `id` of its service."
}
]
},
"description": "Needs `vps:read`. The name of each IP of the server. `hostname` is null while it is the default one. Comes from a copy up to 5 minutes old.\n\nPT: Ver o DNS reverso\n\n`operationId`: `servers.reverse_dns.get`"
},
"response": []
},
{
"id": "49ce8c05-6b3e-56e8-8f82-adc536642fbb",
"name": "Change the reverse DNS",
"request": {
"method": "PUT",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/servers/:id/reverse-dns",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"servers",
":id",
"reverse-dns"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the server, the same as the `id` of its service."
}
]
},
"description": "Needs `vps:write`. If the list of IPs of the server cannot be read, it answers `502` and nothing changes. Only the IPs of this server, up to 64. An empty `hostname` clears it. `changed` says how many were different.\n\nPT: Mudar o DNS reverso\n\n`operationId`: `servers.reverse_dns.update`",
"body": {
"mode": "raw",
"raw": "{\n \"records\": [\n {\n \"ip\": \"203.0.113.10\",\n \"hostname\": \"mail.example.co.mz\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "2139d5b1-9719-5ae3-85ee-64d74b0d1b0c",
"name": "See the time zone",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/servers/:id/timezone",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"servers",
":id",
"timezone"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the server, the same as the `id` of its service."
}
]
},
"description": "Needs `vps:read`. The last time zone saved, and the ones you can choose. `timezone` is null if none was chosen yet.\n\nPT: Ver o fuso horário\n\n`operationId`: `servers.timezone.get`"
},
"response": []
},
{
"id": "290b9fbc-eedf-58eb-89be-c15c1c05fe05",
"name": "Change the time zone",
"request": {
"method": "PUT",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/servers/:id/timezone",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"servers",
":id",
"timezone"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the server, the same as the `id` of its service."
}
]
},
"description": "Needs `vps:write`. Answers `202`. The action ends after about 2 minutes, without a check on the server.\n\nPT: Mudar o fuso horário\n\n`operationId`: `servers.timezone.update`",
"body": {
"mode": "raw",
"raw": "{\n \"timezone\": \"Africa/Maputo\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "5b192917-0c71-584a-8e96-12701280d4d8",
"name": "Reinstall a server",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/servers/:id/reinstall",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"servers",
":id",
"reinstall"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the server, the same as the `id` of its service."
}
]
},
"description": "Needs `vps:reinstall`. Deletes everything on the server. Needs `Idempotency-Key`, the name of the server in `confirm`, and `backup_first`. With `backup_first` true, it first makes a backup and reinstalls by itself when the backup appears, which can take up to an hour; with 4 backups it answers `409` with `backup_limit_reached` and deletes nothing. The new root password appears only in this response and works when the reinstall ends. Up to 3 per hour, counting restores.\n\nPT: Reinstalar um servidor\n\n`operationId`: `servers.reinstall`",
"body": {
"mode": "raw",
"raw": "{\n \"confirm\": \"web1.example.co.mz\",\n \"operating_system\": \"ubuntu-24.04\",\n \"backup_first\": true\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "cbc0f9d8-ba42-531a-921d-78e7422f53d3",
"name": "Restore a backup",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/servers/:id/restore",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"servers",
":id",
"restore"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the server, the same as the `id` of its service."
}
]
},
"description": "Needs `vps:restore`. The server goes back to the state of the backup: everything changed after it is lost. Needs `Idempotency-Key` and the name of the server in `confirm`. Up to 3 per hour, counting reinstalls.\n\nPT: Restaurar uma cópia\n\n`operationId`: `servers.restore`",
"body": {
"mode": "raw",
"raw": "{\n \"confirm\": \"web1.example.co.mz\",\n \"backup\": \"3f9a1c7e5b2d4860\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "00ef1e42-e698-5326-80ed-cde40659e01d",
"name": "Server extras",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/servers/:id/extras",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"servers",
":id",
"extras"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The server `id` (the service)."
}
]
},
"description": "Needs `vps:read`. What an additional IP and extra disk cost on this server: `monthly_amount` is added to each renewal and `amount_today` is paid now, from today to the next renewal. Without tax (`tax_added`). When one is not available, `reason` says why: `extra_not_available`, `ip_limit_reached` or `disk_limit_reached`.\n\nPT: Extras do servidor\n\n`operationId`: `servers.extras.get`"
},
"response": []
},
{
"id": "213f8cce-89ef-5649-8717-2c202373e7b4",
"name": "Buy a server extra",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/servers/:id/extras",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"servers",
":id",
"extras"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The server `id` (the service)."
}
]
},
"description": "Needs `billing:purchase`. Also needs `vps:write`. `type` is `ip` or `disk`; a disk takes `size_gb` (10, 20, 50 or 100, up to 100 GB extra). `expected_amount` is optional: if sent and the price changed, it answers `409` with `price_changed`. With payment the extra is delivered and its monthly amount joins the renewal; it is followed in GET /v1/extras/{id} with `extra_id`. An unpaid invoice of the same extra answers `409` with `invoice_open`. Extras do not take `promo_code`. Paid with credit only, within the spending limit of the key; the `Idempotency-Key` header is required and purchases are limited to 5 per minute. The price is the same as in your account: if the invoice does not match it, the purchase is undone and nothing is charged. `amount` is the invoice total with tax, `subtotal` is without tax and `tax` is the tax; in Sandbox nothing is created, `amount` comes without tax and `tax` is `null`. With the account profile incomplete it answers `409` with `profile_incomplete`.\n\nPT: Comprar um extra do servidor\n\n`operationId`: `servers.extras.purchase`",
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"disk\",\n \"size_gb\": 10,\n \"expected_amount\": 100.0\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
}
]
},
{
"id": "ebdb6717-c143-5810-b9db-284086dd3031",
"name": "hosting",
"description": "Usage, panel login, domains, databases, cron, SSL, PHP, backups and FTP of a hosting service.\n\nPT: Uso, entrada no painel, domínios, bases de dados, cron, SSL, PHP, cópias e FTP de uma hospedagem.",
"item": [
{
"id": "a5d480c8-d074-56a6-8b47-08d45d39bf9b",
"name": "See disk, traffic and resource usage",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/usage",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"usage"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
]
},
"description": "Needs `hosting:read`. Disk and traffic in bytes. `limit_bytes` is `null` when there is no limit. The items in `resources` depend on the server. If the service is not active, or is not a supported hosting account, it answers `409` with the reason in `details.reason`.\n\nPT: Ver o uso de disco, tráfego e recursos\n\n`operationId`: `hosting.usage.get`"
},
"response": []
},
{
"id": "af8fb070-8811-5b74-8164-0cb31d89157b",
"name": "Create a direct login link",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/cpanel-login",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"cpanel-login"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
]
},
"description": "Needs `hosting:login`. The link works once and gives full access to the panel of this account, so keep it private. It is never stored, so `Idempotency-Key` is not kept here: each call creates a new link. Limit: 5 per minute. With a `sandbox_` key it only checks the request and changes nothing.\n\nPT: Criar uma ligação de entrada directa\n\n`operationId`: `hosting.login.create`"
},
"response": []
},
{
"id": "0260d7b9-82db-5770-958e-37e0c1d4f5a0",
"name": "List subdomains",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/subdomains",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"subdomains"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
],
"query": [
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `hosting:read`. Each one with its folder, relative to the account folder. If the service is not active, or is not a supported hosting account, it answers `409` with the reason in `details.reason`.\n\nPT: Listar subdomínios\n\n`operationId`: `hosting.subdomains.list`"
},
"response": []
},
{
"id": "788f4fa3-d14a-5a85-9add-d375052b3289",
"name": "Create a subdomain",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/subdomains",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"subdomains"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
]
},
"description": "Needs `hosting:write`. The `root_domain` must be active in your account: registered with us (or a subdomain of one that is), or the domain of an active hosting service, otherwise it answers `409` with `domain_not_owned`. A domain registered elsewhere is added in cPanel. The `root_domain` must be a domain of this hosting account. With a `sandbox_` key it only checks the request and changes nothing.\n\nPT: Criar um subdomínio\n\n`operationId`: `hosting.subdomains.create`",
"body": {
"mode": "raw",
"raw": "{\n \"root_domain\": \"example.co.mz\",\n \"name\": \"blog\",\n \"directory\": \"public_html/blog\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "337a528e-16bd-5176-8d2a-72243bd67b1d",
"name": "Delete a subdomain",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/subdomains/:domain",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"subdomains",
":domain"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
},
{
"key": "domain",
"value": "",
"description": "The full name of the domain."
}
]
},
"description": "Needs `hosting:write`. Needs the name in `confirm`. The files stay in the folder. With a `sandbox_` key it only checks the request and changes nothing.\n\nPT: Apagar um subdomínio\n\n`operationId`: `hosting.subdomains.delete`",
"body": {
"mode": "raw",
"raw": "{\n \"confirm\": \"blog.example.co.mz\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "d3bb18be-7e5c-51ff-a9c4-228b94eb16cf",
"name": "List addon domains",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/addon-domains",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"addon-domains"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
],
"query": [
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `hosting:read`. The domains with their own site in this account. If the service is not active, or is not a supported hosting account, it answers `409` with the reason in `details.reason`.\n\nPT: Listar domínios adicionais\n\n`operationId`: `hosting.addon_domains.list`"
},
"response": []
},
{
"id": "85fa1a77-71d4-5725-b8d4-2d14837bd3ed",
"name": "Add an addon domain",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/addon-domains",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"addon-domains"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
]
},
"description": "Needs `hosting:write`. The domain must be active in your account: registered with us (or a subdomain of one that is), or the domain of an active hosting service, otherwise it answers `409` with `domain_not_owned`. A domain registered elsewhere is added in cPanel. Counts towards the limit of sites of the plan. The domain must point to our nameservers. With a `sandbox_` key it only checks the request and changes nothing.\n\nPT: Adicionar um domínio adicional\n\n`operationId`: `hosting.addon_domains.create`",
"body": {
"mode": "raw",
"raw": "{\n \"domain\": \"outro.co.mz\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "8f6eebec-bb61-59cb-9a7e-1780bcd10a0e",
"name": "Remove an addon domain",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/addon-domains/:domain",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"addon-domains",
":domain"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
},
{
"key": "domain",
"value": "",
"description": "The full name of the domain."
}
]
},
"description": "Needs `hosting:write`. Needs the name in `confirm`. The files stay in the folder. With a `sandbox_` key it only checks the request and changes nothing.\n\nPT: Retirar um domínio adicional\n\n`operationId`: `hosting.addon_domains.delete`",
"body": {
"mode": "raw",
"raw": "{\n \"confirm\": \"outro.co.mz\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "ea448ebd-2263-5b88-82f1-755bdab5ef4a",
"name": "List redirects",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/redirects",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"redirects"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
],
"query": [
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `hosting:read`. A `domain` of `all` applies to every domain of the account. If the service is not active, or is not a supported hosting account, it answers `409` with the reason in `details.reason`.\n\nPT: Listar redireccionamentos\n\n`operationId`: `hosting.redirects.list`"
},
"response": []
},
{
"id": "8a50ef34-0914-5bc0-a2bb-a5fb6f7e29ff",
"name": "Create a redirect",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/redirects",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"redirects"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
]
},
"description": "Needs `hosting:write`. The `destination` starts with `http://` or `https://` and cannot have spaces, quotes or `%`. With a `sandbox_` key it only checks the request and changes nothing.\n\nPT: Criar um redireccionamento\n\n`operationId`: `hosting.redirects.create`",
"body": {
"mode": "raw",
"raw": "{\n \"domain\": \"example.co.mz\",\n \"source\": \"/antigo\",\n \"destination\": \"https://www.example.co.mz/novo\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "c7170104-cc29-57c9-a036-dc294b9b93ef",
"name": "Delete a redirect",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/redirects/:redirect_id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"redirects",
":redirect_id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
},
{
"key": "redirect_id",
"value": "",
"description": "The `id` from the list."
}
]
},
"description": "Needs `hosting:write`. Use the `id` from the list. With a `sandbox_` key it only checks the request and changes nothing.\n\nPT: Apagar um redireccionamento\n\n`operationId`: `hosting.redirects.delete`"
},
"response": []
},
{
"id": "1a3e06fe-8f41-5b5e-aaea-0267b3ec0d72",
"name": "List databases",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/databases",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"databases"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
],
"query": [
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `hosting:read`. Each one with its size and users. If the service is not active, or is not a supported hosting account, it answers `409` with the reason in `details.reason`.\n\nPT: Listar bases de dados\n\n`operationId`: `hosting.databases.list`"
},
"response": []
},
{
"id": "5455cc21-86f3-5776-a565-bb8626d81a54",
"name": "Create a database",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/databases",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"databases"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
]
},
"description": "Needs `hosting:write`. The answer gives the final name, with the prefix. With a `sandbox_` key it only checks the request and changes nothing.\n\nPT: Criar uma base de dados\n\n`operationId`: `hosting.databases.create`",
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"site\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "a93f0575-a1e8-5fff-bbc9-74c351d9a570",
"name": "Delete a database",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/databases/:name",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"databases",
":name"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
},
{
"key": "name",
"value": "",
"description": "The full name, with the account prefix."
}
]
},
"description": "Needs `hosting:write`. Needs the name in `confirm`. The data is lost. With a `sandbox_` key it only checks the request and changes nothing.\n\nPT: Apagar uma base de dados\n\n`operationId`: `hosting.databases.delete`",
"body": {
"mode": "raw",
"raw": "{\n \"confirm\": \"conta_site\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "d83d89aa-22ea-5168-a2c7-c02c9a0f5810",
"name": "List database users",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/database-users",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"database-users"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
],
"query": [
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `hosting:read`. Each one with the databases it can reach. If the service is not active, or is not a supported hosting account, it answers `409` with the reason in `details.reason`.\n\nPT: Listar utilizadores de bases de dados\n\n`operationId`: `hosting.database_users.list`"
},
"response": []
},
{
"id": "e0fe1cab-7343-5731-a6c9-a66cb3d20415",
"name": "Create a database user",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/database-users",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"database-users"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
]
},
"description": "Needs `hosting:write`. The password is never stored by the API, so `Idempotency-Key` is not kept here. With a `sandbox_` key it only checks the request and changes nothing.\n\nPT: Criar um utilizador de bases de dados\n\n`operationId`: `hosting.database_users.create`",
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"site\",\n \"password\": \"pP7-kX2mQ9vL4tR8wZ3a\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "e81f7132-0587-5c81-b043-be5a9d79ba8e",
"name": "Change a database user password",
"request": {
"method": "PUT",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/database-users/:name/password",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"database-users",
":name",
"password"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
},
{
"key": "name",
"value": "",
"description": "The full name, with the account prefix."
}
]
},
"description": "Needs `hosting:write`. The password never comes back. With a `sandbox_` key it only checks the request and changes nothing.\n\nPT: Mudar a senha de um utilizador de bases de dados\n\n`operationId`: `hosting.database_users.password`",
"body": {
"mode": "raw",
"raw": "{\n \"password\": \"pP7-kX2mQ9vL4tR8wZ3a\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "8d7ddeba-4ada-5084-8cb4-c589e9126064",
"name": "Delete a database user",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/database-users/:name",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"database-users",
":name"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
},
{
"key": "name",
"value": "",
"description": "The full name, with the account prefix."
}
]
},
"description": "Needs `hosting:write`. Needs the name in `confirm`. With a `sandbox_` key it only checks the request and changes nothing.\n\nPT: Apagar um utilizador de bases de dados\n\n`operationId`: `hosting.database_users.delete`",
"body": {
"mode": "raw",
"raw": "{\n \"confirm\": \"conta_site\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "ac4eea84-ec4d-52bc-b4cf-ad68e8987c0d",
"name": "Give a user access to a database",
"request": {
"method": "PUT",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/databases/:name/users/:user",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"databases",
":name",
"users",
":user"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
},
{
"key": "name",
"value": "",
"description": "The full name, with the account prefix."
},
{
"key": "user",
"value": "",
"description": "The full name of the user, with the account prefix."
}
]
},
"description": "Needs `hosting:write`. Use `ALL`, or a list such as `SELECT` and `INSERT`. With a `sandbox_` key it only checks the request and changes nothing.\n\nPT: Dar a um utilizador acesso a uma base\n\n`operationId`: `hosting.databases.grant`",
"body": {
"mode": "raw",
"raw": "{\n \"privileges\": [\n \"ALL\"\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "9f5defe3-7bc5-50be-bfb5-994d57f7a202",
"name": "Remove a user access to a database",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/databases/:name/users/:user",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"databases",
":name",
"users",
":user"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
},
{
"key": "name",
"value": "",
"description": "The full name, with the account prefix."
},
{
"key": "user",
"value": "",
"description": "The full name of the user, with the account prefix."
}
]
},
"description": "Needs `hosting:write`. The user and the database stay. With a `sandbox_` key it only checks the request and changes nothing.\n\nPT: Retirar o acesso de um utilizador a uma base\n\n`operationId`: `hosting.databases.revoke`"
},
"response": []
},
{
"id": "b1e8956a-b67a-5203-bd83-6c2e492f83d8",
"name": "List cron jobs",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/cron",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"cron"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
],
"query": [
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `hosting:read`. Includes the jobs created in the panel. If the service is not active, or is not a supported hosting account, it answers `409` with the reason in `details.reason`. `command` can contain passwords: it is only filled in with `hosting:code`; without it, it is `null` and `command_hidden` is `true`.\n\nPT: Listar tarefas cron\n\n`operationId`: `hosting.cron.list`"
},
"response": []
},
{
"id": "2a22a19b-9de0-5b70-944b-5f9bd27def4b",
"name": "Create a cron job",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/cron",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"cron"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
]
},
"description": "Needs `hosting:code`. A cron job runs code on the account, so this permission is separate from `hosting:write` and off by default. In `url`, only public domain names that resolve to public addresses are accepted. Free commands are not accepted: give either `php_script`, a PHP file of the account, or `url`, a public address that is called. The minimum interval is 5 minutes and each account has up to 20 jobs. With a `sandbox_` key it only checks the request and changes nothing.\n\nPT: Criar uma tarefa cron\n\n`operationId`: `hosting.cron.create`",
"body": {
"mode": "raw",
"raw": "{\n \"schedule\": \"*/15 * * * *\",\n \"php_script\": \"public_html/cron.php\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "8556c939-67ae-5a08-8bff-30f32e36d5c6",
"name": "Delete a cron job",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/cron/:cron_id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"cron",
":cron_id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
},
{
"key": "cron_id",
"value": "",
"description": "The `id` from the list."
}
]
},
"description": "Needs `hosting:write`. Use the `id` from the list. With a `sandbox_` key it only checks the request and changes nothing.\n\nPT: Apagar uma tarefa cron\n\n`operationId`: `hosting.cron.delete`"
},
"response": []
},
{
"id": "a5468cd0-3ade-5462-85ad-b4e9e2934f2d",
"name": "See the SSL certificates",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/ssl",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"ssl"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
],
"query": [
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `hosting:read`. The certificate of each site and its expiry date. `meta.autossl_running` says if a free certificate is being requested. If the service is not active, or is not a supported hosting account, it answers `409` with the reason in `details.reason`.\n\nPT: Ver os certificados SSL\n\n`operationId`: `hosting.ssl.get`"
},
"response": []
},
{
"id": "ed18c04a-07bd-56e1-adfc-547514e59a68",
"name": "Request free certificates",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/ssl/autossl",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"ssl",
"autossl"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
]
},
"description": "Needs `hosting:write`. It only works for domains that point to our servers. Limit: once every 15 minutes per account. With a `sandbox_` key it only checks the request and changes nothing.\n\nPT: Pedir certificados gratuitos\n\n`operationId`: `hosting.ssl.autossl`"
},
"response": []
},
{
"id": "422f0856-6a29-51e8-9c58-0664ac698547",
"name": "See the PHP version of each site",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/php",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"php"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
],
"query": [
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `hosting:read`. The version of each domain, or `inherit`. To change the version, use the panel. If the service is not active, or is not a supported hosting account, it answers `409` with the reason in `details.reason`.\n\nPT: Ver a versão do PHP de cada site\n\n`operationId`: `hosting.php.get`"
},
"response": []
},
{
"id": "4eaf7b0c-b36a-504a-be54-cc9f2c31347b",
"name": "See the PHP options",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/php/options",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"php",
"options"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
],
"query": [
{
"key": "domain",
"value": "",
"description": "A domain of this hosting account. If omitted, the main domain.",
"disabled": true
}
]
},
"description": "Needs `hosting:read`. Only the options that can be changed through the API. If the service is not active, or is not a supported hosting account, it answers `409` with the reason in `details.reason`.\n\nPT: Ver as opções do PHP\n\n`operationId`: `hosting.php.options`"
},
"response": []
},
{
"id": "bf20f4b6-db24-53e5-bd07-893b3bd9079f",
"name": "Change the PHP options",
"request": {
"method": "PUT",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/php/options",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"php",
"options"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
]
},
"description": "Needs `hosting:write`. Accepted: `memory_limit` (32M to 2048M), `post_max_size` and `upload_max_filesize` (1M to 2048M), `max_execution_time` and `max_input_time` (1 to 600), `max_input_vars` (100 to 20000), `session.gc_maxlifetime` (60 to 86400), `display_errors` and `zlib.output_compression` (true or false). With a `sandbox_` key it only checks the request and changes nothing.\n\nPT: Alterar as opções do PHP\n\n`operationId`: `hosting.php.options.update`",
"body": {
"mode": "raw",
"raw": "{\n \"domain\": \"example.co.mz\",\n \"options\": {\n \"memory_limit\": \"256M\",\n \"max_execution_time\": 60\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "880f05f1-d7bb-54ba-92c3-80023d9f5d6a",
"name": "List backup dates",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/backups",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"backups"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
],
"query": [
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `hosting:read`. The dates with a backup on the server. The backup requested with `POST` stays in the account folder and is not in this list. To restore, use the account dashboard or ask support. If the service is not active, or is not a supported hosting account, it answers `409` with the reason in `details.reason`.\n\nPT: Listar as datas das cópias\n\n`operationId`: `hosting.backups.list`"
},
"response": []
},
{
"id": "d13bb77e-4639-5cc6-ac6b-e5a8ad26b31d",
"name": "Request a full backup",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/backups",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"backups"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
]
},
"description": "Needs `hosting:write`. The file stays in the account folder and takes up space of the plan. Limit: once a day per account. With a `sandbox_` key it only checks the request and changes nothing.\n\nPT: Pedir uma cópia completa\n\n`operationId`: `hosting.backups.create`"
},
"response": []
},
{
"id": "ed59130f-073b-5922-81b5-4a2b689cfb31",
"name": "List FTP accounts",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/ftp-accounts",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"ftp-accounts"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
],
"query": [
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `hosting:read`. `quota_mb` is `null` when there is no limit. If the service is not active, or is not a supported hosting account, it answers `409` with the reason in `details.reason`.\n\nPT: Listar acessos FTP\n\n`operationId`: `hosting.ftp.list`"
},
"response": []
},
{
"id": "2c8df9ba-9e01-5518-a05f-6033f42f5d00",
"name": "Create an FTP account",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/ftp-accounts",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"ftp-accounts"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
]
},
"description": "Needs `hosting:code`. FTP in the site folder can run code on the account, so this permission is separate from `hosting:write` and off by default. The access only sees its folder. The password is never stored by the API, so `Idempotency-Key` is not kept here. With a `sandbox_` key it only checks the request and changes nothing.\n\nPT: Criar um acesso FTP\n\n`operationId`: `hosting.ftp.create`",
"body": {
"mode": "raw",
"raw": "{\n \"user\": \"ana\",\n \"domain\": \"example.co.mz\",\n \"password\": \"pP7-kX2mQ9vL4tR8wZ3a\",\n \"directory\": \"public_html/ana\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "d4435a52-8a07-5dd5-9dd5-cca66054be55",
"name": "Change an FTP password",
"request": {
"method": "PUT",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/ftp-accounts/:login/password",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"ftp-accounts",
":login",
"password"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
},
{
"key": "login",
"value": "",
"description": "The login, as `name@domain`."
}
]
},
"description": "Needs `hosting:code`. FTP in the site folder can run code on the account, so this permission is separate from `hosting:write` and off by default. The main account cannot be changed here. With a `sandbox_` key it only checks the request and changes nothing.\n\nPT: Mudar a senha de um acesso FTP\n\n`operationId`: `hosting.ftp.password`",
"body": {
"mode": "raw",
"raw": "{\n \"password\": \"pP7-kX2mQ9vL4tR8wZ3a\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "685ec95f-a728-59a1-896f-7524c5f24761",
"name": "Delete an FTP account",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/ftp-accounts/:login",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"ftp-accounts",
":login"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
},
{
"key": "login",
"value": "",
"description": "The login, as `name@domain`."
}
]
},
"description": "Needs `hosting:write`. Needs the login in `confirm`. The files stay. The main account cannot be deleted. With a `sandbox_` key it only checks the request and changes nothing.\n\nPT: Apagar um acesso FTP\n\n`operationId`: `hosting.ftp.delete`",
"body": {
"mode": "raw",
"raw": "{\n \"confirm\": \"ana@example.com\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
}
]
},
{
"id": "ba0d1737-e8ec-58d3-8f9e-9450e48b3a87",
"name": "email",
"description": "Mailboxes, forwarders, autoresponders, default address and authentication of a hosting service.\n\nPT: Caixas, reencaminhadores, respostas automáticas, conta geral e autenticação de uma hospedagem.",
"item": [
{
"id": "20916546-f8de-5d35-9eca-071d6eca183e",
"name": "List mailboxes",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/email/mailboxes",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"email",
"mailboxes"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
],
"query": [
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `email:read`. `quota_mb` is `null` when the mailbox has no limit of its own. If the service is not active, or is not a supported hosting account, it answers `409` with the reason in `details.reason`.\n\nPT: Listar caixas de e-mail\n\n`operationId`: `email.mailboxes.list`"
},
"response": []
},
{
"id": "5bb43716-48ad-5c2f-a242-744396a0e507",
"name": "Create a mailbox",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/email/mailboxes",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"email",
"mailboxes"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
]
},
"description": "Needs `email:write`. System names of the server, such as `_mainaccount`, are not accepted. The domain must be of this hosting account. The password is never stored by the API, so `Idempotency-Key` is not kept here. With a `sandbox_` key it only checks the request and changes nothing. On the domain of the account email, or of the email of a user of the account, it answers `409` with the code `account_email_domain`: make the change in the account dashboard.\n\nPT: Criar uma caixa de e-mail\n\n`operationId`: `email.mailboxes.create`",
"body": {
"mode": "raw",
"raw": "{\n \"address\": \"info@example.com\",\n \"password\": \"pP7-kX2mQ9vL4tR8wZ3a\",\n \"quota_mb\": 1024\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "ad1712cd-98f0-5030-9d76-7bc8f67439f1",
"name": "Delete a mailbox",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/email/mailboxes/:address",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"email",
"mailboxes",
":address"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
},
{
"key": "address",
"value": "",
"description": "The full email address."
}
]
},
"description": "Needs `email:write`. Needs the address in `confirm`. The messages are lost. With a `sandbox_` key it only checks the request and changes nothing. On the domain of the account email, or of the email of a user of the account, it answers `409` with the code `account_email_domain`: make the change in the account dashboard.\n\nPT: Apagar uma caixa de e-mail\n\n`operationId`: `email.mailboxes.delete`",
"body": {
"mode": "raw",
"raw": "{\n \"confirm\": \"info@example.com\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "341d3bcd-2ce8-5c55-a8b9-2c0302a96358",
"name": "Change a mailbox password",
"request": {
"method": "PUT",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/email/mailboxes/:address/password",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"email",
"mailboxes",
":address",
"password"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
},
{
"key": "address",
"value": "",
"description": "The full email address."
}
]
},
"description": "Needs `email:write`. System names of the server, such as `_mainaccount`, are not accepted. The password never comes back. Limit: 10 per minute per account. With a `sandbox_` key it only checks the request and changes nothing. On the domain of the account email, or of the email of a user of the account, it answers `409` with the code `account_email_domain`: make the change in the account dashboard.\n\nPT: Mudar a senha de uma caixa\n\n`operationId`: `email.mailboxes.password`",
"body": {
"mode": "raw",
"raw": "{\n \"password\": \"pP7-kX2mQ9vL4tR8wZ3a\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "b9773684-71f4-588b-95d1-dfc2a1930d66",
"name": "Change a mailbox quota",
"request": {
"method": "PUT",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/email/mailboxes/:address/quota",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"email",
"mailboxes",
":address",
"quota"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
},
{
"key": "address",
"value": "",
"description": "The full email address."
}
]
},
"description": "Needs `email:write`. The quota can never go above the disk space of the plan. With a `sandbox_` key it only checks the request and changes nothing. On the domain of the account email, or of the email of a user of the account, it answers `409` with the code `account_email_domain`: make the change in the account dashboard.\n\nPT: Mudar a quota de uma caixa\n\n`operationId`: `email.mailboxes.quota`",
"body": {
"mode": "raw",
"raw": "{\n \"quota_mb\": 2048\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "31caeb80-cbb0-5e03-b89d-fb2f65b79c9c",
"name": "List forwarders",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/email/forwarders",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"email",
"forwarders"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
],
"query": [
{
"key": "domain",
"value": "",
"description": "A domain of this hosting account. If omitted, the main domain.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `email:read`. `forward_to` is `null` if the forwarder goes to a program, set in the panel. If the service is not active, or is not a supported hosting account, it answers `409` with the reason in `details.reason`.\n\nPT: Listar reencaminhadores\n\n`operationId`: `email.forwarders.list`"
},
"response": []
},
{
"id": "16d1ff0a-8919-57c7-b202-0d1b2043918e",
"name": "Create a forwarder",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/email/forwarders",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"email",
"forwarders"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
]
},
"description": "Needs `email:write`. Only to email addresses, never to programs. With a `sandbox_` key it only checks the request and changes nothing. On the domain of the account email, or of the email of a user of the account, it answers `409` with the code `account_email_domain`: make the change in the account dashboard.\n\nPT: Criar um reencaminhador\n\n`operationId`: `email.forwarders.create`",
"body": {
"mode": "raw",
"raw": "{\n \"address\": \"info@example.com\",\n \"forward_to\": \"ana@example.com\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "396e1c56-9616-503b-9cab-cf12e01a7801",
"name": "Delete a forwarder",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/email/forwarders/:address/:forward_to",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"email",
"forwarders",
":address",
":forward_to"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
},
{
"key": "address",
"value": "",
"description": "The full email address."
},
{
"key": "forward_to",
"value": "",
"description": "The address it forwards to."
}
]
},
"description": "Needs `email:write`. Give the two addresses in the path. With a `sandbox_` key it only checks the request and changes nothing. On the domain of the account email, or of the email of a user of the account, it answers `409` with the code `account_email_domain`: make the change in the account dashboard.\n\nPT: Apagar um reencaminhador\n\n`operationId`: `email.forwarders.delete`"
},
"response": []
},
{
"id": "f7731eae-8079-5760-921d-a2a4f9db42cb",
"name": "List autoresponders",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/email/autoresponders",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"email",
"autoresponders"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
],
"query": [
{
"key": "domain",
"value": "",
"description": "A domain of this hosting account. If omitted, the main domain.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `email:read`. The autoresponders of one domain. If the service is not active, or is not a supported hosting account, it answers `409` with the reason in `details.reason`.\n\nPT: Listar respostas automáticas\n\n`operationId`: `email.autoresponders.list`"
},
"response": []
},
{
"id": "9c76d475-87e0-5783-aeb0-a2a7f222d18a",
"name": "See an autoresponder",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/email/autoresponders/:address",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"email",
"autoresponders",
":address"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
},
{
"key": "address",
"value": "",
"description": "The full email address."
}
]
},
"description": "Needs `email:read`. With the text and the dates. If the service is not active, or is not a supported hosting account, it answers `409` with the reason in `details.reason`.\n\nPT: Ver uma resposta automática\n\n`operationId`: `email.autoresponders.get`"
},
"response": []
},
{
"id": "d6fa7701-5c01-5881-b5c2-20b43141cc10",
"name": "Save an autoresponder",
"request": {
"method": "PUT",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/email/autoresponders/:address",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"email",
"autoresponders",
":address"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
},
{
"key": "address",
"value": "",
"description": "The full email address."
}
]
},
"description": "Needs `email:write`. Creates or replaces the autoresponder of this address. With a `sandbox_` key it only checks the request and changes nothing.\n\nPT: Gravar uma resposta automática\n\n`operationId`: `email.autoresponders.put`",
"body": {
"mode": "raw",
"raw": "{\n \"from\": \"Info\",\n \"subject\": \"Out of office\",\n \"body\": \"Volto na segunda.\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "82a58458-186d-555b-9487-17ab327dc868",
"name": "Delete an autoresponder",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/email/autoresponders/:address",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"email",
"autoresponders",
":address"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
},
{
"key": "address",
"value": "",
"description": "The full email address."
}
]
},
"description": "Needs `email:write`. The mailbox stays. With a `sandbox_` key it only checks the request and changes nothing.\n\nPT: Apagar uma resposta automática\n\n`operationId`: `email.autoresponders.delete`"
},
"response": []
},
{
"id": "c12304f9-9e31-5650-abd5-046329289f94",
"name": "See the default address",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/email/default-address",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"email",
"default-address"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
],
"query": [
{
"key": "domain",
"value": "",
"description": "A domain of this hosting account. If omitted, the main domain.",
"disabled": true
}
]
},
"description": "Needs `email:read`. What happens to mail for addresses that do not exist. `action` is `fail`, `forward`, `discard`, `main_account` or `other`. If the service is not active, or is not a supported hosting account, it answers `409` with the reason in `details.reason`.\n\nPT: Ver a conta geral\n\n`operationId`: `email.default_address.get`"
},
"response": []
},
{
"id": "d639904b-7b8c-5dff-ae7a-86613c00e062",
"name": "Change the default address",
"request": {
"method": "PUT",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/email/default-address",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"email",
"default-address"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
]
},
"description": "Needs `email:write`. Accepted actions: `fail`, `forward`, `discard` and `main_account`. With a `sandbox_` key it only checks the request and changes nothing. On the domain of the account email, or of the email of a user of the account, it answers `409` with the code `account_email_domain`: make the change in the account dashboard.\n\nPT: Alterar a conta geral\n\n`operationId`: `email.default_address.put`",
"body": {
"mode": "raw",
"raw": "{\n \"domain\": \"example.co.mz\",\n \"action\": \"fail\",\n \"message\": \"No such person at this address.\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "1ee8a9d4-6edc-50ad-91a5-86d26b668210",
"name": "See SPF, DKIM and DMARC",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/services/:id/email/authentication",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"services",
":id",
"email",
"authentication"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the hosting service."
}
],
"query": [
{
"key": "domain",
"value": "",
"description": "A domain of this hosting account. If omitted, the main domain.",
"disabled": true
}
]
},
"description": "Needs `email:read`. The state of the three records of a domain, as published in DNS. If the service is not active, or is not a supported hosting account, it answers `409` with the reason in `details.reason`.\n\nPT: Ver SPF, DKIM e DMARC\n\n`operationId`: `email.authentication.get`"
},
"response": []
}
]
},
{
"id": "bef81b7e-51eb-5a2c-a732-703380b2b472",
"name": "extras",
"description": "Certificates, SiteLock, radio and other extras of the account.\n\nPT: Certificados, SiteLock, rádio e outros extras da conta.",
"item": [
{
"id": "b977426c-9dd0-51a8-a474-bf6530767b1c",
"name": "List extras for sale",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/extras/catalog",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"extras",
"catalog"
],
"query": [
{
"key": "kind",
"value": "ssl",
"description": "Only this kind.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `extras:read`. Prices in the currency of the account. `purchasable` says if it can be bought through the API; if not, use `portal_url`. SiteLock has no 3 or 6 month periods. Extra IP and disk of a server are bought in the account dashboard.\n\nPT: Listar os extras à venda\n\n`operationId`: `extras.catalog.list`"
},
"response": []
},
{
"id": "10ffb5f1-e386-52a5-bb9b-3d34f224bf08",
"name": "List the extras of the account",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/extras",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"extras"
],
"query": [
{
"key": "kind",
"value": "ssl",
"description": "Only this kind.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `extras:read`. The extras of this account. The `id` starts with `s` for a service, `a` for an add-on and `v` for an extra IP or disk of a server, which also has `quantity` and `invoice_id`. Certificates have `certificate`. Access data never comes here.\n\nPT: Listar os extras da conta\n\n`operationId`: `extras.list`"
},
"response": []
},
{
"id": "cb35a920-2b1a-5e11-b653-12e2080df292",
"name": "See an extra",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/extras/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"extras",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` from the list, such as `s812`."
}
]
},
"description": "Needs `extras:read`. One extra of this account, with the `id` from the list.\n\nPT: Ver um extra\n\n`operationId`: `extras.get`"
},
"response": []
},
{
"id": "66b7e752-4b77-5bef-b060-b4046d976e54",
"name": "Buy an extra",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/extras/purchase",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"extras",
"purchase"
]
},
"description": "Needs `billing:purchase`. Also needs `extras:write` and the `Idempotency-Key` header. Paid with credit only, within the spending limit of the key. Only for products with `purchasable`. SiteLock needs `site`; a certificate does not take it and is configured in the account dashboard after the purchase. Answers `202`: the action ends with the payment, and delivery is followed in `GET /v1/extras/{id}`. Limited to 5 per minute. Accepts `promo_code`.\n\nPT: Comprar um extra\n\n`operationId`: `extras.purchase`",
"body": {
"mode": "raw",
"raw": "{\n \"product_id\": 96,\n \"billing_cycle\": \"annually\",\n \"site\": \"example.com\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
}
]
},
{
"id": "f54fed47-37e2-5728-a0d6-8761566ae134",
"name": "reseller",
"description": "The reseller programs and accounts of this account.\n\nPT: Os programas e as contas de revenda desta conta.",
"item": [
{
"id": "9355957b-b166-5e7c-889a-31addd801fb0",
"name": "See the reseller programs",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/reseller",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"reseller"
]
},
"description": "Needs `reseller:read`. Which reseller programs this account has: domains, SMS and hosting, and the Agency of the Reseller Program.\n\nPT: Ver os programas de revenda\n\n`operationId`: `reseller.get`"
},
"response": []
},
{
"id": "6db3d231-2a73-5fb7-b67c-ac95b48939e9",
"name": "List reseller accounts",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/reseller/services",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"reseller",
"services"
],
"query": [
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `reseller:read`. The reseller hosting accounts of this account. Access data never comes here.\n\nPT: Listar as contas de revenda\n\n`operationId`: `reseller.services.list`"
},
"response": []
},
{
"id": "d9a79521-44bf-5bd2-a6f2-a925bedea660",
"name": "See a reseller account",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/reseller/services/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"reseller",
"services",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` of the account."
}
]
},
"description": "Needs `reseller:read`. One reseller hosting account of this account.\n\nPT: Ver uma conta de revenda\n\n`operationId`: `reseller.services.get`"
},
"response": []
},
{
"id": "52a516d1-6269-5cc9-891d-6a21bb46391f",
"name": "See your Agency",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/reseller/program",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"reseller",
"program"
]
},
"description": "Needs `reseller:read`. Your Agency and discount, what counts for the next Agency (paid in the last 12 months plus credit, or active domains and services: one of the two is enough), the review warning, the credit with the low credit warning and the automatic top-up, and the credit line when the team gave you one. Amounts in the currency of the account. Only for active members of the Reseller Program; other accounts get `403` with `reseller_program_required`.\n\nPT: Ver o seu Agency\n\n`operationId`: `reseller.program.get`"
},
"response": []
},
{
"id": "2546beff-0fc7-5947-b0ba-336f634e4461",
"name": "See your prices",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/reseller/pricing",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"reseller",
"pricing"
],
"query": [
{
"key": "type",
"value": "domains",
"description": "`domains` (default) or `products`.",
"disabled": true
},
{
"key": "currency",
"value": "",
"description": "Optional currency code, such as `USD`.",
"disabled": true
},
{
"key": "extension",
"value": "",
"description": "Domains only: one extension, such as `co.mz`.",
"disabled": true
},
{
"key": "group_id",
"value": "",
"description": "Products only: one product group.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `reseller:read`. Your prices, the same as the catalog: `type=domains` (default) gives the extensions, as in GET /v1/catalog/tlds, and `type=products` the products, as in GET /v1/catalog/products. `price` is yours and `list_price` the public one. Accepts `currency`, `extension` and `group_id`. Only for active members of the Reseller Program; other accounts get `403` with `reseller_program_required`.\n\nPT: Ver os seus preços\n\n`operationId`: `reseller.pricing.list`"
},
"response": []
},
{
"id": "4e329154-e1be-544e-8a30-ac0b537f85b7",
"name": "List end customers",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/reseller/customers",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"reseller",
"customers"
],
"query": [
{
"key": "type",
"value": "domain",
"description": "`domain` or `service`.",
"disabled": true
},
{
"key": "search",
"value": "",
"description": "Text in the label or in the domain, up to 80 characters.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `reseller:read`. The domains and services of this account that have an end customer label, newest first. Filter with `type` (`domain` or `service`) and `search` (label or domain). Only for active members of the Reseller Program; other accounts get `403` with `reseller_program_required`.\n\nPT: Listar os clientes finais\n\n`operationId`: `reseller.customers.list`"
},
"response": []
},
{
"id": "7e656b4b-422e-50f5-8f6a-04bb7fdf7dc4",
"name": "Label an end customer",
"request": {
"method": "PUT",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/reseller/customers/:type/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"reseller",
"customers",
":type",
":id"
],
"variable": [
{
"key": "type",
"value": "",
"description": "`domain` or `service`."
},
{
"key": "id",
"value": "",
"description": "The `id` of the domain or service."
}
]
},
"description": "Needs `reseller:write`. Writes the end customer of a domain or service of this account, up to 80 characters; an empty `name` removes the label. The same label as in your account. Another account's item answers `404`; in Sandbox nothing is saved. Only for active members of the Reseller Program; other accounts get `403` with `reseller_program_required`.\n\nPT: Etiquetar um cliente final\n\n`operationId`: `reseller.customers.set`",
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"João Fernandes\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "0ad56c42-69f2-580f-9757-bcf69e809024",
"name": "Create a top-up invoice",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/reseller/top-up",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"reseller",
"top-up"
]
},
"description": "Needs `reseller:write`. Creates an invoice that adds `amount` to the credit when paid, without tax; nothing is charged. Pay it at `pay_url` with the methods of the account. The minimum is `top_up_minimum` of GET /v1/reseller/program; with an unpaid top-up invoice it answers `409` with `top_up_pending` and that invoice. In Sandbox nothing is created. Only for active members of the Reseller Program; other accounts get `403` with `reseller_program_required`.\n\nPT: Criar factura de carregamento\n\n`operationId`: `reseller.top_up.create`",
"body": {
"mode": "raw",
"raw": "{\n \"amount\": 5000\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "2d2cf649-2036-53ef-8138-03a0c877f342",
"name": "See the credit statement",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/reseller/statements",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"reseller",
"statements"
],
"query": [
{
"key": "month",
"value": "",
"description": "The month, as `YYYY-MM`.",
"disabled": true
},
{
"key": "page",
"value": "1",
"description": "The page number. The first is 1.",
"disabled": true
},
{
"key": "per_page",
"value": "10",
"description": "Results per page, from 1 to 100. The default is 10.",
"disabled": true
}
]
},
"description": "Needs `reseller:read`. The credit movements of one month (`month=YYYY-MM`, current month by default), oldest first and in pages, with the opening and closing balance and the totals in and out of the month. Only for active members of the Reseller Program; other accounts get `403` with `reseller_program_required`.\n\nPT: Ver os movimentos do saldo\n\n`operationId`: `reseller.statements.get`"
},
"response": []
},
{
"id": "31f16648-640b-5505-8c43-51816db16647",
"name": "See the account webhook",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/webhooks",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"webhooks"
]
},
"description": "Needs `webhooks:read`. The address and the events of the account webhook, never the secret. It is the same address as the SMS webhook. `available_events` lists the events you can choose.\n\nPT: Ver o webhook da conta\n\n`operationId`: `webhooks.get`"
},
"response": []
},
{
"id": "5239f73b-475f-567f-b186-e90a1ad79784",
"name": "Save the account webhook",
"request": {
"method": "PUT",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/webhooks",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"webhooks"
]
},
"description": "Needs `webhooks:write`. Saves the HTTPS address (port 443) and the full list of events. The `secret` is shown only when the webhook is created or with `rotate_secret: true`: keep it. The SMS webhook keeps the events chosen here. Each event is a signed POST, as in the SMS webhook: `X-Webhook-Signature: t=<unix time>,v1=<hex>`, HMAC-SHA256 of `t + \".\" + raw body` with your secret; answer 2xx within 5 seconds or we retry up to 5 times.\n\nPT: Gravar o webhook da conta\n\n`operationId`: `webhooks.set`",
"body": {
"mode": "raw",
"raw": "{\n \"url\": \"https://example.co.mz/webhooks\",\n \"events\": [\n \"domain.registered\",\n \"domain.registration_failed\",\n \"service.created\"\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "0972da74-6c24-521d-b796-8f2ad46ed5e6",
"name": "Delete the account webhook",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/webhooks",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"webhooks"
]
},
"description": "Needs `webhooks:write`. Deletes the address and all its events, the SMS ones included, and cancels the events not yet delivered.\n\nPT: Apagar o webhook da conta\n\n`operationId`: `webhooks.delete`"
},
"response": []
},
{
"id": "7cbbfbc4-7d6e-591b-9363-d3c7f53993ce",
"name": "Test the account webhook",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/webhooks/test",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"webhooks",
"test"
]
},
"description": "Needs `webhooks:write`. Sends a signed `webhook.test` event to the saved address now and returns what your server answered.\n\nPT: Testar o webhook da conta\n\n`operationId`: `webhooks.test`"
},
"response": []
}
]
},
{
"id": "ad7ea6f2-35af-5007-9709-4cfdfbe9a01a",
"name": "ai",
"description": "Artificial intelligence: text, image, video and voice models, paid with credits. Chat is compatible with the OpenAI SDKs.\n\nPT: Inteligência artificial: modelos de texto, imagem, vídeo e voz, pagos com créditos. O chat é compatível com os SDK da OpenAI.",
"item": [
{
"id": "5dc768b6-b8f7-5bb0-8927-453db1cc0d09",
"name": "List the AI models",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/models",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"models"
],
"query": [
{
"key": "type",
"value": "text",
"description": "Only models of this type. `agent` lists only your agents.",
"disabled": true
},
{
"key": "q",
"value": "",
"description": "Search in the id, the name and the description.",
"disabled": true
}
]
},
"description": "Needs `ai:read`. Every model on sale, in the OpenAI format (`{\"object\": \"list\", \"data\": [...]}`), so `client.models.list()` of the OpenAI SDKs works. Each model comes with its type and its price in credits. Your own agents come first, with `type` `agent` and the id `agent/<id>`. Filter with `type` and `q`. The list is the same with a `sandbox_` key and a `prod_` key.\n\nPT: Listar os modelos de IA\n\n`operationId`: `ai.models.list`"
},
"response": []
},
{
"id": "ae0c8ea2-92a5-5959-9622-ce6787f5153d",
"name": "Get an AI model",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/models/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"models",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The model id, slash included, such as `deepseek-ai/deepseek-v4-flash` or `openai/gpt-image-2/text-to-image`, or `agent/<id>` for one of your agents. Send it as it is."
}
]
},
"description": "Needs `ai:read`. One model, in the same format as the list. Image, video and voice models also bring `input`: the fields to send inside `input` in POST /v1/media/generations, with the accepted values and the defaults.\n\nPT: Ver um modelo de IA\n\n`operationId`: `ai.models.get`"
},
"response": []
},
{
"id": "cbcf0f39-0cfc-5c97-888e-aab9427a79c0",
"name": "Chat with a text model",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/chat/completions",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"chat",
"completions"
]
},
"description": "Needs `ai:write`. Compatible with the OpenAI chat API: point the OpenAI SDK at this API (`base_url`) and use your key. Before calling the model we reserve credits for the input (about one token per 3 characters) and for `max_tokens` of output; if the balance is not enough, the answer is `402` and nothing is charged. At the end we charge by the real `usage` and give back the difference. With `stream: true` the answer comes as `text/event-stream`. With a `sandbox_` key the model is not called and nothing is charged: the answer is always `Resposta de teste (sandbox).`, with `usage` at zero, also in streaming. With `\"model\": \"agent/<id>\"` the request goes to one of your agents: it adds its instructions and knowledge, uses its model, runs its tools (at most 5 rounds, each one charged as a chat request) and never goes above its `max_tokens` and `temperature`; with `stream: true` only the final answer is streamed.\n\nPT: Conversar com um modelo de texto\n\n`operationId`: `ai.chat.create`",
"body": {
"mode": "raw",
"raw": "{\n \"model\": \"deepseek-ai/deepseek-v4-flash\",\n \"messages\": [\n {\n \"role\": \"system\",\n \"content\": \"You are a helpful assistant for a web hosting company.\"\n },\n {\n \"role\": \"user\",\n \"content\": \"Write a two-sentence welcome message for our website.\"\n }\n ],\n \"max_tokens\": 200\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "4dd63040-cc15-5ddc-8d84-b8267f47043f",
"name": "Start an image, video or voice generation",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/media/generations",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"media",
"generations"
]
},
"description": "Needs `ai:write`. Images, videos and voice take from a few seconds to a few minutes, so the answer is `202` right away, with the `id` of the generation and the credits reserved. Then call GET /v1/media/generations/{id} until `status` is `completed` or `failed`. If the balance is not enough for the reservation, the answer is `402` and nothing is charged. With a `sandbox_` key nothing is made and nothing is charged: the generation is `completed` at once, with an example link and `0` credits.\n\nPT: Pedir uma imagem, um vídeo ou uma voz\n\n`operationId`: `ai.media.create`",
"body": {
"mode": "raw",
"raw": "{\n \"model\": \"openai/gpt-image-2/text-to-image\",\n \"input\": {\n \"prompt\": \"A bright, modern office with plants and soft morning light\",\n \"size\": \"1024x1024\",\n \"quality\": \"medium\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "7b6c6f38-fcf4-54ff-bcac-afd5b57316f1",
"name": "Check a generation",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/media/generations/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"media",
"generations",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` returned by POST /v1/media/generations."
}
]
},
"description": "Needs `ai:read`. The state of a generation. Each call also moves it forward, so call it every 5 to 10 seconds until `status` is `completed` (the links are in `outputs`) or `failed` (the reason is in `error` and the reservation comes back). Only the account that asked for it can see it.\n\nPT: Consultar uma geração\n\n`operationId`: `ai.media.get`"
},
"response": []
},
{
"id": "890c2dc1-fb54-5470-b4bc-5e87e8c37de4",
"name": "See the AI credit balance",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/ai/balance",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"ai",
"balance"
]
},
"description": "Needs `ai:read`. The credits the account has for AI. Chat and generations take credits from this balance; a reservation that is not used comes back to it. It is the same balance with a `sandbox_` key and a `prod_` key. With a Coding Plan, `subscription` also shows the points left this week and this month and when they come back.\n\nPT: Ver o saldo de créditos de IA\n\n`operationId`: `ai.balance.get`"
},
"response": []
},
{
"id": "51562ff9-6e57-53bc-9f07-c56e33701be7",
"name": "Send a message in the Anthropic format",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
},
{
"key": "anthropic-version",
"value": "",
"disabled": true,
"description": "Sent by the Anthropic SDKs and Claude Code. It goes through as it is; you do not need to send it."
},
{
"key": "anthropic-beta",
"value": "",
"disabled": true,
"description": "Sent by Claude Code. It goes through as it is."
}
],
"url": {
"raw": "{{base_url}}/v1/messages",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"messages"
]
},
"description": "Needs `ai:write`. Compatible with the Anthropic Messages API, for Claude Code and the Anthropic SDKs: set the base URL to this API without `/v1` (the tool adds `/v1/messages`). It works like POST /v1/chat/completions: the same models and agents, the same reservation and charge (or Coding Plan points), the same account rules and the same sandbox, where the answer is always `Resposta de teste (sandbox).` with `usage` at zero. Tool calls come as `tool_use` blocks and you answer with `tool_result` blocks. With `stream: true` the answer comes as Anthropic events. Errors in this operation use the Anthropic format. The body may have up to 8 MB. The key may come in `Authorization: Bearer` or in `x-api-key`.\n\nPT: Enviar uma mensagem no formato da Anthropic\n\n`operationId`: `ai.messages.create`",
"body": {
"mode": "raw",
"raw": "{\n \"model\": \"moonshotai/kimi-k2.7-code\",\n \"max_tokens\": 1024,\n \"system\": \"You are a careful senior developer.\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Write a Python function that checks if a string is a palindrome.\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "b60930be-7c48-54e5-aaf5-45f5cdf552cf",
"name": "Count the tokens of a message",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "anthropic-version",
"value": "",
"disabled": true,
"description": "Sent by the Anthropic SDKs and Claude Code. It goes through as it is; you do not need to send it."
},
{
"key": "anthropic-beta",
"value": "",
"disabled": true,
"description": "Sent by Claude Code. It goes through as it is."
}
],
"url": {
"raw": "{{base_url}}/v1/messages/count_tokens",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"messages",
"count_tokens"
]
},
"description": "Needs `ai:write`. An estimate of the input tokens of a POST /v1/messages request, which Claude Code uses to manage the context. It does not call the model, costs nothing and does not spend points. Errors use the Anthropic format. The key may come in `Authorization: Bearer` or in `x-api-key`.\n\nPT: Contar os tokens de uma mensagem\n\n`operationId`: `ai.messages.count_tokens`",
"body": {
"mode": "raw",
"raw": "{\n \"model\": \"moonshotai/kimi-k2.7-code\",\n \"system\": \"You are a careful senior developer.\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Write a Python function that checks if a string is a palindrome.\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "bf223048-946d-59d3-a877-8a53f4162a21",
"name": "Create a response in the OpenAI Responses format",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/responses",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"responses"
]
},
"description": "Needs `ai:write`. Compatible with the OpenAI Responses API, for Codex CLI (`wire_api = \"responses\"`) and the OpenAI SDKs (`client.responses.create`), with the base URL ending in `/v1`. It works like POST /v1/chat/completions: the same models and agents, the same reservation and charge (or Coding Plan points), the same account rules and the same sandbox. Function calls come as `function_call` items and you answer with `function_call_output` items. The response is kept for 30 days, so you can go on with `previous_response_id`. Errors of the model and of the account come in the OpenAI format (`{\"error\": {\"message\", \"type\", \"param\", \"code\"}}`), with the same `code`. The body may have up to 8 MB. The key may come in `Authorization: Bearer` or in `x-api-key`.\n\nPT: Criar uma resposta no formato OpenAI Responses\n\n`operationId`: `ai.responses.create`",
"body": {
"mode": "raw",
"raw": "{\n \"model\": \"moonshotai/kimi-k2.7-code\",\n \"instructions\": \"You are a careful senior developer.\",\n \"input\": \"Write a Python function that checks if a string is a palindrome.\",\n \"max_output_tokens\": 1024\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
},
{
"id": "50411e83-b9d2-5272-bd8e-a967fd837ec0",
"name": "Get a saved response",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/responses/:id",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"responses",
":id"
],
"variable": [
{
"key": "id",
"value": "",
"description": "The `id` returned by POST /v1/responses."
}
]
},
"description": "Needs `ai:read`. A response made by POST /v1/responses in the last 30 days, the same as it was returned. Only the account that made it can see it; after 30 days the answer is `404`. The key may come in `Authorization: Bearer` or in `x-api-key`.\n\nPT: Ver uma resposta guardada\n\n`operationId`: `ai.responses.get`"
},
"response": []
},
{
"id": "db55a937-f95e-5d5c-863f-09859b26c22b",
"name": "AI credit prices",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{base_url}}/v1/ai/credits/prices",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"ai",
"credits",
"prices"
]
},
"description": "Needs `ai:read`. The price of each AI credit by quantity, in the currency of the account. Tax is added on the invoice (`tax_added`).\n\nPT: Preços dos créditos de IA\n\n`operationId`: `ai.credits.prices`"
},
"response": []
},
{
"id": "7007ab9d-2330-595d-aee6-b93347936e06",
"name": "Buy AI credits",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{$guid}}",
"description": "A new value for each request; repeat the same value to retry safely."
}
],
"url": {
"raw": "{{base_url}}/v1/ai/credits/purchase",
"host": [
"{{base_url}}"
],
"path": [
"v1",
"ai",
"credits",
"purchase"
]
},
"description": "Needs `billing:purchase`. Also needs `ai:write`. Buys `quantity` AI credits at the price of GET /v1/ai/credits/prices; they enter the balance with the payment. Credits do not take `promo_code`. Paid with credit only, within the spending limit of the key; the `Idempotency-Key` header is required and purchases are limited to 5 per minute. The price is the same as in your account: if the invoice does not match it, the purchase is undone and nothing is charged. `amount` is the invoice total with tax, `subtotal` is without tax and `tax` is the tax; in Sandbox nothing is created, `amount` comes without tax and `tax` is `null`. With the account profile incomplete it answers `409` with `profile_incomplete`.\n\nPT: Comprar créditos de IA\n\n`operationId`: `ai.credits.purchase`",
"body": {
"mode": "raw",
"raw": "{\n \"quantity\": 1000\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": []
}
]
}
]
}