MillionSend Docs
Referência da APIEndpointsApi keys

/api-keys

POST
/api-keys

Request Body

application/json
  1. body
name*string
Length1 <= length <= 80
permission?string
Default"full_access"
Value in"full_access""sending_access"
domain_id?string

Restricts the key to sending from this one verified domain of the team: a GET /domains row with shared: false. Omitted or null, the key inherits the calling key's scope: all domains, or the calling key's domain if it is domain-scoped. A domain-scoped calling key cannot name any other domain (403 restricted_api_key).

Formatuuid
inbox_id?string

MillionSend extension: restricts the key to one inbox of the team. It reads that inbox's threads, drafts and received mail and sends only from its address; every other route answers 403 restricted_api_key. Needs full_access, can't be combined with domain_id, and an inbox holds at most 5 active keys (outside the team's 25).

Formatuuid

Response Body

API key created; the token is returned only here

application/json
  1. response
id*string
Formatuuid
token*string
Example Request
curl -X POST 'https://api.millionsend.com/api-keys' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "token": "string"}