Skip to content

Add an email domain to the connection (owner). Not effective until the TXT record is published and verified

POST
/v1/orgs/{org}/sso/domains
curl --request POST \
--url https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/sso/domains \
--header 'Content-Type: application/json' \
--data '{ "domain": "example" }'
org
required
string
/^org_[a-z0-9]{26}$/

Example

org_01hx0000000000000000000000
Media typeapplication/json
object
domain
required
string
<= 253 characters /^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$/

Example generated

{
"domain": "example"
}

Domain pending verification

Media typeapplication/json
object
domain
required
string
verified
required
boolean
verifiedAt
required
string
nullable
verification
required

DNS record that proves the domain belongs to the organization.

object
recordType
required
string
Allowed values: TXT
recordName
required
string
recordValue
required
string

Example

{
"verification": {
"recordType": "TXT"
}
}

Invalid data

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

No session, expired session, or invalid, expired or revoked API key

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Does not exist or is not visible to you

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Conflict

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Internal error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}