Ethiack Docs
Organizations

Register an identity domain to prove (owner)

POST
/v1/organizations/{organization_id}/sso/domains

Register a domain and return the DNS record that proves it.

The domain is unproven until a check observes the record; nothing here can shortcut that. The response carries the token to publish, so a caller never needs a second request to find out what to do next.

AuthorizationBearer <token>

An API key created in Portal → Settings → API, sent as Authorization: Bearer <key>.

In: header

Path Parameters

organization_id*integer

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://api.ethiack.com/v1/organizations/0/sso/domains" \  -H "Content-Type: application/json" \  -d '{    "domain": "string"  }'
{
  "id": 0,
  "domain": "string",
  "verified_at": "2019-08-24T14:15:22Z",
  "last_checked_at": "2019-08-24T14:15:22Z",
  "record_name": "string",
  "record_name_relative": "string",
  "record_value": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}