Skip to Content
Docs
API referencePlatform API

Domains

List domains

GET
/domains

Get a list of domains for an instance

Query Parameters

instance_id*string

Instance ID

page?integer

Page number

limit?integer

Page size (default 25, at most 100)

sort?string

Sort order

search?string

Search

type?"auth_server"

Type

Value in"auth_server"

Response Body

OK

application/json
  1. response
data?array<>

The list of domains

object?string

The object type

pagination?

The pagination information

Example Request
curl -X GET 'https://api.pontive.com/v1/domains?instance_id=string'
Example Response
{  "data": [    {      "created_at": "2019-08-24T14:15:22Z",      "domain": "string",      "id": "string",      "instance_id": "string",      "ssl": {        "auto_renew": true,        "expires_at": "2019-08-24T14:15:22Z",        "issued_at": "2019-08-24T14:15:22Z",        "issuer": "string"      },      "status": "string",      "type": "auth_server",      "updated_at": "2019-08-24T14:15:22Z",      "usage": {        "apps_count": 0,        "service_accounts_count": 0      },      "verification": {        "challenge": "string",        "last_check_at": "2019-08-24T14:15:22Z",        "last_check_error": "string",        "method": "string",        "target": "string",        "verified_at": "2019-08-24T14:15:22Z"      }    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

Create domain

POST
/domains

Register a hostname against an instance. The domain starts pending and carries the DNS challenge that must be published before it can be activated.

Request Body

Domain to create

application/json
  1. body

Domain to create

domain*string

The hostname, e.g. auth.acme.com

instance_id*string

The ID of the instance to add the domain to

Response Body

Created

application/json
  1. response
domain?

The created domain. It starts pending, carrying the challenge that must be published before it can be activated.

object?string

The object type

Example Request
curl -X POST 'https://api.pontive.com/v1/domains' \  -H 'Content-Type: application/json' \  -d '{  "domain": "string",  "instance_id": "string"}'
Example Response
{  "domain": {    "created_at": "2019-08-24T14:15:22Z",    "domain": "string",    "id": "string",    "instance_id": "string",    "ssl": {      "auto_renew": true,      "expires_at": "2019-08-24T14:15:22Z",      "issued_at": "2019-08-24T14:15:22Z",      "issuer": "string"    },    "status": "string",    "type": "auth_server",    "updated_at": "2019-08-24T14:15:22Z",    "usage": {      "apps_count": 0,      "service_accounts_count": 0    },    "verification": {      "challenge": "string",      "last_check_at": "2019-08-24T14:15:22Z",      "last_check_error": "string",      "method": "string",      "target": "string",      "verified_at": "2019-08-24T14:15:22Z"    }  },  "object": "string"}

Delete domain

DELETE
/domains/{domain_id}

Remove a domain. Refused while any app or service account is still bound to it.

Path Parameters

domain_id*string

Domain ID

Response Body

No Content

Example Request
curl -X DELETE 'https://api.pontive.com/v1/domains/string'
Example Response
Empty

Verify domain

POST
/domains/{domain_id}/verify

Check the DNS TXT challenge for a domain and record the outcome. Does not activate the domain; activation is a separate call and is refused until verification has succeeded.

Path Parameters

domain_id*string

Domain ID

Response Body

OK

application/json
  1. response
domain?

The created domain. It starts pending, carrying the challenge that must be published before it can be activated.

object?string

The object type

Example Request
curl -X POST 'https://api.pontive.com/v1/domains/string/verify'
Example Response
{  "domain": {    "created_at": "2019-08-24T14:15:22Z",    "domain": "string",    "id": "string",    "instance_id": "string",    "ssl": {      "auto_renew": true,      "expires_at": "2019-08-24T14:15:22Z",      "issued_at": "2019-08-24T14:15:22Z",      "issuer": "string"    },    "status": "string",    "type": "auth_server",    "updated_at": "2019-08-24T14:15:22Z",    "usage": {      "apps_count": 0,      "service_accounts_count": 0    },    "verification": {      "challenge": "string",      "last_check_at": "2019-08-24T14:15:22Z",      "last_check_error": "string",      "method": "string",      "target": "string",      "verified_at": "2019-08-24T14:15:22Z"    }  },  "object": "string"}