Skip to main content
POST
/
api
/
organizations
/
domains
cURL
curl --request POST \
  --url https://api.recoupable.dev/api/organizations/domains \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "domain": "seekermusic.com"
}
'
{
  "status": "success",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "domain": "seekermusic.com",
  "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

x-api-key
string
header
required

Your Recoup API key. Learn more.

Body

application/json

Domain-organization mapping parameters

organizationId
string<uuid>
required

The account ID of the organization

domain
string
required

The email domain to map (lowercase, no @)

Example:

"seekermusic.com"

Response

Domain mapped to organization successfully (or already mapped)

status
enum<string>
required

Status of the request

Available options:
success
id
string<uuid>
required

UUID of the domain mapping record

domain
string
required

The mapped email domain

Example:

"seekermusic.com"

organization_id
string<uuid>
required

The account ID of the organization