Okta Domain API

The Domain API from Okta — 4 operation(s) for domain.

GitHub OpenAPI

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/v1/domains List custom domains · Okta List Domains #
Ask an LLM
“Which custom domains are set up on my Okta org?”
“What is the validation status of my custom domains?”
Tell an agent
List my custom domains.
Show every custom domain and whether it is verified.
POST /api/v1/domains Add a custom domain · Okta Create Domain #
Ask an LLM
“How do I use my own domain for the Okta sign-in page?”
“Can I bring my own certificate for a custom domain?”
Tell an agent
Add custom domain {domain}.
Create domain {domain} with certificate source {certificateSourceType}.
GET /api/v1/domains/{domainId} Get a custom domain · Okta Get Domain #
Ask an LLM
“What DNS records do I need to add for a custom domain?”
“Can I check one domain's validation status?”
Tell an agent
Show custom domain {domainId}.
Get the DNS records for domain {domainId}.
DELETE /api/v1/domains/{domainId} Delete a custom domain · Okta Delete Domain #
Ask an LLM
“How do I remove a custom domain from my org?”
“Is deleting a custom domain permanent?”
Tell an agent destructive · confirm first
Delete custom domain {domainId}.
Remove domain {domainId} from my org.
PUT /api/v1/domains/{domainId}/certificate Upload a TLS certificate for a domain · Okta Create Certificate #
Ask an LLM
“How do I upload my own TLS certificate for a custom domain?”
“Does the certificate upload need the private key and chain?”
Tell an agent
Upload certificate {certificate} with key {privateKey} for domain {domainId}.
Attach certificate {certificate} and chain {certificateChain} to domain {domainId}.
POST /api/v1/domains/{domainId}/verify Verify a custom domain's DNS · Okta Verify Domain #
Ask an LLM
“How do I get Okta to check my DNS records for a custom domain?”
“Why is my custom domain still unverified?”
Tell an agent
Verify custom domain {domainId}.
Run DNS verification for domain {domainId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/okta:okta-domain-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

okta-domain-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Okta Domain API
  description: Allows customers to easily access the Okta API
  termsOfService: https://developer.okta.com/terms/
  contact:
    name: Okta Developer Team
    url: https://developer.okta.com/
    email: devex-public@okta.com
  license:
    name: Apache-2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  version: 2.16.0
servers:
- url: https://your-subdomain.okta.com/
tags:
- name: Domain
paths:
  /api/v1/domains:
    get:
      tags:
      - Domain
      summary: Okta List Domains
      description: List all verified custom Domains for the org.
      operationId: listDomains
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainListResponse'
      security:
      - api_token: []
    post:
      tags:
      - Domain
      summary: Okta Create Domain
      description: Creates your domain.
      operationId: createDomain
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Domain'
        required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Domain'
      security:
      - api_token: []
      x-codegen-request-body-name: domain
  /api/v1/domains/{domainId}:
    get:
      tags:
      - Domain
      summary: Okta Get Domain
      description: Fetches a Domain by `id`.
      operationId: getDomain
      parameters:
      - name: domainId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Domain'
      security:
      - api_token: []
    delete:
      tags:
      - Domain
      summary: Okta Delete Domain
      description: Deletes a Domain by `id`.
      operationId: deleteDomain
      parameters:
      - name: domainId
        in: path
        required: true
        schema:
          type: string
      responses:
        '204':
          description: No Content
          content: {}
      security:
      - api_token: []
  /api/v1/domains/{domainId}/certificate:
    put:
      tags:
      - Domain
      summary: Okta Create Certificate
      description: Creates the Certificate for the Domain.
      operationId: createCertificate
      parameters:
      - name: domainId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DomainCertificate'
        required: true
      responses:
        '204':
          description: No Content
          content: {}
      security:
      - api_token: []
      x-codegen-request-body-name: certificate
  /api/v1/domains/{domainId}/verify:
    post:
      tags:
      - Domain
      summary: Okta Verify Domain
      description: Verifies the Domain by `id`.
      operationId: verifyDomain
      parameters:
      - name: domainId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Domain'
      security:
      - api_token: []
components:
  schemas:
    DomainValidationStatus:
      type: string
      enum:
      - NOT_STARTED
      - IN_PROGRESS
      - VERIFIED
      - FAILED_TO_VERIFY
      - DOMAIN_TAKEN
      - COMPLETED
      x-okta-tags:
      - Domain
    Domain:
      type: object
      properties:
        certificateSourceType:
          $ref: '#/components/schemas/DomainCertificateSourceType'
        dnsRecords:
          type: array
          items:
            $ref: '#/components/schemas/DNSRecord'
        domain:
          type: string
        id:
          type: string
          readOnly: true
        publicCertificate:
          $ref: '#/components/schemas/DomainCertificateMetadata'
        validationStatus:
          $ref: '#/components/schemas/DomainValidationStatus'
      x-okta-tags:
      - Domain
    DomainCertificateType:
      type: string
      enum:
      - PEM
      x-okta-tags:
      - Domain
    DomainCertificate:
      type: object
      properties:
        certificate:
          type: string
        certificateChain:
          type: string
        privateKey:
          type: string
        type:
          $ref: '#/components/schemas/DomainCertificateType'
      x-okta-operations:
      - alias: createCertificate
        arguments:
        - dest: certificate
          self: true
        operationId: createCertificate
      x-okta-tags:
      - Domain
    DomainListResponse:
      type: object
      properties:
        domains:
          type: array
          items:
            $ref: '#/components/schemas/Domain'
      x-okta-tags:
      - Domain
    DNSRecord:
      type: object
      properties:
        expiration:
          type: string
        fqdn:
          type: string
        recordType:
          $ref: '#/components/schemas/DNSRecordType'
        values:
          type: array
          items:
            type: string
      x-okta-tags:
      - Domain
    DomainCertificateSourceType:
      type: string
      enum:
      - MANUAL
      - OKTA_MANAGED
      x-okta-tags:
      - Domain
    DNSRecordType:
      type: string
      enum:
      - TXT
      - CNAME
      x-okta-tags:
      - Domain
    DomainCertificateMetadata:
      type: object
      properties:
        expiration:
          type: string
        fingerprint:
          type: string
        subject:
          type: string
      x-okta-tags:
      - Domain
  securitySchemes:
    api_token:
      type: apiKey
      description: SSWS {API Token}
      name: Authorization
      in: header
externalDocs:
  description: Find more info here
  url: https://developer.okta.com/docs/api/getting_started/design_principles.html
x-provenance:
  method: harvested
  publisher: Okta
  source: https://raw.githubusercontent.com/okta/okta-management-openapi-spec/HEAD/dist/legacy-v1-swagger/spec.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)