Create API token
mail_createAPITokenV1Create an API token for a Hostinger mail order to enable secure access to the Hostinger Email API for provisioning and managing mailboxes. Define the scope to cover all mailboxes or specific ones.
Instructions
Create an API token for the given mail order. The token grants access to the Hostinger Email API, where you can provision and manage the mailboxes it is scoped to.
The plaintext token is returned only in this response, never again.
A maximum of 10 tokens can exist per order. Use
scope.has_all_mailboxes to cover all current and future mailboxes,
or list specific mailboxes in scope.mailbox_ids.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable label for this token | |
| scope | Yes | Mailbox scope this token can access | |
| orderId | Yes | Order resource ID |