POST
/api-keysCreate a new API keyRequest body
application/json
objectCreateApiKeyRequest
domain_idstringRestrict an API key to send emails only from a specific domain. Only used when the permission is sending_access.
namestringrequiredThe API key name.
permissionstringThe API key can have full access to Resend’s API or be only restricted to send emails. * full_access - Can create, delete, get, and update any resource. * sending_access - Can only send emails.
{
"domain_id": "string",
"name": "string",
"permission": "full_access"
}Responses
objectCreateApiKeyResponse
idstringThe ID of the API key.
tokenstringThe token of the API key.
{
"id": "string",
"token": "string"
}