Referência da APIEndpointsApi keys
/api-keys
POST
application/json- body
name*stringLength
1 <= length <= 80permission?stringDefault
"full_access"Value in
"full_access""sending_access"domain_id?stringRestricts 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).
Format
uuidinbox_id?stringMillionSend 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).
Format
uuidAPI key created; the token is returned only here
application/json- response
id*stringFormat
uuidtoken*stringcurl -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"}