Skip to Content

VerifyEmailChange

POST
/auth/v1/users/current/emails/verify

Verifies the caller's own pending email and moves it onto the account. The tokens are reissued within the caller's sign-in.

Authorization

headerX-API-Key<token>

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

Request Body

required
application/json
{
  "$ref": "#/components/schemas/auth.v1.VerifyEmailChangeRequest",
  "$ref-value": {
    "type": "object",
    "properties": {
      "verification_id": {
        "type": "string",
        "title": "verification_id"
      },
      "code": {
        "type": "string",
        "title": "code"
      }
    },
    "title": "VerifyEmailChangeRequest",
    "additionalProperties": false
  }
}

Response Body

200application/json

Success

type: unknown

{
  "$ref": "#/components/schemas/auth.v1.VerifyEmailResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "message": {
        "type": "string",
        "title": "message"
      },
      "email": {
        "type": "string",
        "title": "email"
      },
      "verified": {
        "type": "boolean",
        "title": "verified"
      },
      "tokens": {
        "title": "tokens",
        "$ref": "#/components/schemas/auth.v1.TokenResponse",
        "$ref-value": {
          "type": "object",
          "properties": {
            "access_token": {
              "type": "string",
              "title": "access_token"
            },
            "refresh_token": {
              "type": "string",
              "title": "refresh_token"
            },
            "expires_in": {
              "type": "string",
              "title": "expires_in",
              "format": "int64"
            },
            "token_type": {
              "type": "string",
              "title": "token_type"
            },
            "requires_action": {
              "type": "string",
              "title": "requires_action"
            },
            "org_id": {
              "type": "string",
              "title": "org_id"
            },
            "role": {
              "type": "string",
              "title": "role"
            },
            "last_active_org_id": {
              "type": "string",
              "title": "last_active_org_id"
            },
            "domain_join_suggestions": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/auth.v1.Organization",
                "$ref-value": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "title": "id"
                    },
                    "name": {
                      "type": "string",
                      "title": "name"
                    },
                    "slug": {
                      "type": "string",
                      "title": "slug"
                    },
                    "image_id": {
                      "type": "string",
                      "title": "image_id"
                    },
                    "personal": {
                      "type": "boolean",
                      "title": "personal"
                    },
                    "internal": {
                      "type": "boolean",
                      "title": "internal"
                    },
                    "created_at": {
                      "title": "created_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."
                      }
                    },
                    "state": {
                      "title": "state",
                      "$ref": "#/components/schemas/auth.v1.OrganizationState",
                      "$ref-value": {
                        "type": "string",
                        "title": "OrganizationState",
                        "enum": [
                          "ORGANIZATION_STATE_UNSPECIFIED",
                          "ORGANIZATION_STATE_ACTIVE",
                          "ORGANIZATION_STATE_DELETED",
                          "ORGANIZATION_STATE_PURGING"
                        ]
                      }
                    },
                    "delete_time": {
                      "title": "delete_time",
                      "$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."
                      }
                    },
                    "purge_time": {
                      "title": "purge_time",
                      "$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": "Organization",
                  "additionalProperties": false
                }
              },
              "title": "domain_join_suggestions"
            }
          },
          "title": "TokenResponse",
          "additionalProperties": false
        }
      }
    },
    "title": "VerifyEmailResponse",
    "additionalProperties": false
  }
}
default
curl -X POST 'https://api.rixl.com/auth/v1/users/current/emails/verify'

Success

application/json

{
  "$ref": "#/components/schemas/auth.v1.VerifyEmailResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "message": {
        "type": "string",
        "title": "message"
      },
      "email": {
        "type": "string",
        "title": "email"
      },
      "verified": {
        "type": "boolean",
        "title": "verified"
      },
      "tokens": {
        "title": "tokens",
        "$ref": "#/components/schemas/auth.v1.TokenResponse",
        "$ref-value": {
          "type": "object",
          "properties": {
            "access_token": {
              "type": "string",
              "title": "access_token"
            },
            "refresh_token": {
              "type": "string",
              "title": "refresh_token"
            },
            "expires_in": {
              "type": "string",
              "title": "expires_in",
              "format": "int64"
            },
            "token_type": {
              "type": "string",
              "title": "token_type"
            },
            "requires_action": {
              "type": "string",
              "title": "requires_action"
            },
            "org_id": {
              "type": "string",
              "title": "org_id"
            },
            "role": {
              "type": "string",
              "title": "role"
            },
            "last_active_org_id": {
              "type": "string",
              "title": "last_active_org_id"
            },
            "domain_join_suggestions": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/auth.v1.Organization",
                "$ref-value": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "title": "id"
                    },
                    "name": {
                      "type": "string",
                      "title": "name"
                    },
                    "slug": {
                      "type": "string",
                      "title": "slug"
                    },
                    "image_id": {
                      "type": "string",
                      "title": "image_id"
                    },
                    "personal": {
                      "type": "boolean",
                      "title": "personal"
                    },
                    "internal": {
                      "type": "boolean",
                      "title": "internal"
                    },
                    "created_at": {
                      "title": "created_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."
                      }
                    },
                    "state": {
                      "title": "state",
                      "$ref": "#/components/schemas/auth.v1.OrganizationState",
                      "$ref-value": {
                        "type": "string",
                        "title": "OrganizationState",
                        "enum": [
                          "ORGANIZATION_STATE_UNSPECIFIED",
                          "ORGANIZATION_STATE_ACTIVE",
                          "ORGANIZATION_STATE_DELETED",
                          "ORGANIZATION_STATE_PURGING"
                        ]
                      }
                    },
                    "delete_time": {
                      "title": "delete_time",
                      "$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."
                      }
                    },
                    "purge_time": {
                      "title": "purge_time",
                      "$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": "Organization",
                  "additionalProperties": false
                }
              },
              "title": "domain_join_suggestions"
            }
          },
          "title": "TokenResponse",
          "additionalProperties": false
        }
      }
    },
    "title": "VerifyEmailResponse",
    "additionalProperties": false
  }
}