Skip to Content

CheckDomainVerification

POST
/auth/v1/organizations/{org_id}/domain/verify

Authorization

headerX-API-Key<token>

API key for protected endpoints, supplied in the X-API-Key header.

Path Parameters

org_id*org_id

Query Parameters

user_id?user_id

Response Body

200application/json

Success

type: unknown

{
  "$ref": "#/components/schemas/auth.v1.DomainResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "present": {
        "type": "boolean",
        "title": "present"
      },
      "id": {
        "type": "string",
        "title": "id"
      },
      "domain": {
        "type": "string",
        "title": "domain"
      },
      "status": {
        "title": "status",
        "$ref": "#/components/schemas/auth.v1.DomainStatus",
        "$ref-value": {
          "type": "object",
          "not": {
            "required": [
              "verified",
              "pending"
            ]
          },
          "properties": {
            "suggest_join": {
              "type": "boolean",
              "title": "suggest_join"
            },
            "verified": {
              "title": "verified",
              "$ref": "#/components/schemas/auth.v1.VerifiedDomain",
              "$ref-value": {
                "type": "object",
                "properties": {
                  "verified_at": {
                    "title": "verified_at",
                    "$ref": "#/components/schemas/google.protobuf.Timestamp",
                    "$ref-value": {
                      "type": "string",
                      "examples": [
                        "2023-01-15T01:30:15.01Z",
                        "2024-12-25T12:00:00Z"
                      ],
                      "format": "date-time",
                      "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
                    }
                  }
                },
                "title": "VerifiedDomain",
                "additionalProperties": false
              }
            },
            "pending": {
              "title": "pending",
              "$ref": "#/components/schemas/auth.v1.PendingDomain",
              "$ref-value": {
                "type": "object",
                "properties": {
                  "verification_token": {
                    "type": "string",
                    "title": "verification_token"
                  },
                  "expires_at": {
                    "title": "expires_at",
                    "$ref": "#/components/schemas/google.protobuf.Timestamp",
                    "$ref-value": {
                      "type": "string",
                      "examples": [
                        "2023-01-15T01:30:15.01Z",
                        "2024-12-25T12:00:00Z"
                      ],
                      "format": "date-time",
                      "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
                    }
                  }
                },
                "title": "PendingDomain",
                "additionalProperties": false
              }
            }
          },
          "title": "DomainStatus",
          "additionalProperties": false,
          "description": "At most one of `verified`, `pending` may be set."
        }
      }
    },
    "title": "DomainResponse",
    "additionalProperties": false
  }
}
default
curl -X POST 'https://api.rixl.com/auth/v1/organizations/string/domain/verify'

Success

application/json

{
  "$ref": "#/components/schemas/auth.v1.DomainResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "present": {
        "type": "boolean",
        "title": "present"
      },
      "id": {
        "type": "string",
        "title": "id"
      },
      "domain": {
        "type": "string",
        "title": "domain"
      },
      "status": {
        "title": "status",
        "$ref": "#/components/schemas/auth.v1.DomainStatus",
        "$ref-value": {
          "type": "object",
          "not": {
            "required": [
              "verified",
              "pending"
            ]
          },
          "properties": {
            "suggest_join": {
              "type": "boolean",
              "title": "suggest_join"
            },
            "verified": {
              "title": "verified",
              "$ref": "#/components/schemas/auth.v1.VerifiedDomain",
              "$ref-value": {
                "type": "object",
                "properties": {
                  "verified_at": {
                    "title": "verified_at",
                    "$ref": "#/components/schemas/google.protobuf.Timestamp",
                    "$ref-value": {
                      "type": "string",
                      "examples": [
                        "2023-01-15T01:30:15.01Z",
                        "2024-12-25T12:00:00Z"
                      ],
                      "format": "date-time",
                      "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
                    }
                  }
                },
                "title": "VerifiedDomain",
                "additionalProperties": false
              }
            },
            "pending": {
              "title": "pending",
              "$ref": "#/components/schemas/auth.v1.PendingDomain",
              "$ref-value": {
                "type": "object",
                "properties": {
                  "verification_token": {
                    "type": "string",
                    "title": "verification_token"
                  },
                  "expires_at": {
                    "title": "expires_at",
                    "$ref": "#/components/schemas/google.protobuf.Timestamp",
                    "$ref-value": {
                      "type": "string",
                      "examples": [
                        "2023-01-15T01:30:15.01Z",
                        "2024-12-25T12:00:00Z"
                      ],
                      "format": "date-time",
                      "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
                    }
                  }
                },
                "title": "PendingDomain",
                "additionalProperties": false
              }
            }
          },
          "title": "DomainStatus",
          "additionalProperties": false,
          "description": "At most one of `verified`, `pending` may be set."
        }
      }
    },
    "title": "DomainResponse",
    "additionalProperties": false
  }
}