curl -X POST https://api.portkey.ai/v1/admin/organisation/auth-settings/domains \
-H "x-portkey-api-key: PORTKEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "@example.com",
"allow_subdomains": 0
}'{
"object": "organisation_email_domain",
"id": "<string>"
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}Add Email Domain
Add an email domain to the organisation. Public mail provider domains are not accepted. The first domain added becomes the default domain.
Requires an organisation API key with the organisation_auth.update scope.
POST
/
admin
/
organisation
/
auth-settings
/
domains
curl -X POST https://api.portkey.ai/v1/admin/organisation/auth-settings/domains \
-H "x-portkey-api-key: PORTKEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "@example.com",
"allow_subdomains": 0
}'{
"object": "organisation_email_domain",
"id": "<string>"
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}{
"success": false,
"data": {
"errorCode": "<string>",
"message": "<string>"
}
}Portkey is now PRISMA AIRS AI Gateway. See it in action.
Contact Us
Body
application/json
Last modified on December 4, 2026
Was this page helpful?

