---
updatedAt: 2026-09-17T18:26:06.000Z
agentTools:
  projectIndex: https://developer.doit.com/llms.txt
---

# Verify a signup request with the emailed code

Confirms ownership of the admin email by entering the 6-digit code that was emailed when the request was created (or resent). Success records consent and starts provisioning; the request moves to consented and then completed. Five wrong codes lock the current code; request a new one with resendSignupVerification.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "DoiT Cloud Intelligence",
    "description": "Programmatic access to DoiT Platform",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.doit.com"
    }
  ],
  "security": [
    {
      "api_key": []
    },
    {
      "tenantId": [],
      "api_key": []
    }
  ],
  "tags": [
    {
      "name": "Signup",
      "description": "Start a Cloud Intelligence trial for an organization that is not yet a DoiT customer. These operations require no API key: they are rate limited, idempotent, and provision nothing until the organization's admin verifies the request. Agents create a request and hand the returned consentUrl to the admin; the admin verifies by entering the emailed code (or signing the request on the console), after which the tenant is provisioned and the request reports its customer id."
    }
  ],
  "paths": {
    "/signup/v1/requests/{signupRequestId}/verify": {
      "post": {
        "tags": [
          "Signup"
        ],
        "summary": "Verify a signup request with the emailed code",
        "description": "Confirms ownership of the admin email by entering the 6-digit code that was emailed when the request was created (or resent). Success records consent and starts provisioning; the request moves to consented and then completed. Five wrong codes lock the current code; request a new one with resendSignupVerification.",
        "operationId": "verifySignupRequest",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/signupRequestId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SignupVerificationCode"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK - the request is consented; resultToken authorizes subsequent polling. The code is consumed once.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SignupRequest"
                }
              }
            }
          },
          "400": {
            "description": "code is one of invalid_request, verification_code_invalid, verification_code_expired.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/SignupProblem"
                }
              }
            }
          },
          "404": {
            "description": "No signup request exists with this id.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/SignupProblem"
                }
              }
            }
          },
          "409": {
            "description": "The request is not awaiting verification (consent_conflict).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/SignupProblem"
                }
              }
            }
          },
          "429": {
            "description": "Too many attempts (verification_locked) or rate limited.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/SignupProblem"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "SignupVerificationCode": {
        "type": "object",
        "required": [
          "code"
        ],
        "properties": {
          "code": {
            "type": "string",
            "minLength": 6,
            "maxLength": 6,
            "pattern": "^[0-9]{6}$",
            "description": "The 6-digit code from the verification email."
          }
        }
      },
      "SignupVerification": {
        "type": "object",
        "description": "Present while the request awaits the emailed code.",
        "properties": {
          "required": {
            "type": "boolean"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "resendAfterSeconds": {
            "type": "integer"
          },
          "sendsRemaining": {
            "type": "integer"
          }
        }
      },
      "SignupRequest": {
        "type": "object",
        "description": "Redacted public view of a signup request. Never includes the admin email, the verification code or the idempotency key.",
        "required": [
          "id",
          "status"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Public request id (sr_ prefix); an unguessable capability."
          },
          "status": {
            "type": "string",
            "enum": [
              "pending_consent",
              "consented",
              "provisioning",
              "completed",
              "rejected",
              "expired",
              "failed"
            ]
          },
          "channel": {
            "type": "string",
            "enum": [
              "agent",
              "console",
              "web"
            ]
          },
          "companyName": {
            "type": "string",
            "description": "Company name supplied at signup; shown on the console verification and completion pages."
          },
          "consentUrl": {
            "type": "string",
            "format": "uri",
            "description": "Page where the organization's admin verifies the request (pending_consent only)."
          },
          "activationToken": {
            "type": "string",
            "description": "Returned once, by the verifySignupRequest call that performed the verification. Redeem it with createSignupSession after the request is completed."
          },
          "resultToken": {
            "type": "string",
            "description": "Returned only by successful verifySignupRequest. Send as Signup-Result-Token when polling this request to read its result. Valid for one hour; never returned by create, replay, resend or GET."
          },
          "verification": {
            "$ref": "#/components/schemas/SignupVerification"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "description": "When an unverified request expires (pending_consent only)."
          },
          "pollAfterSeconds": {
            "type": "integer",
            "description": "Suggested polling interval while the request is not terminal."
          },
          "customerId": {
            "type": "string",
            "description": "The provisioned tenant (completed only)."
          },
          "consoleUrl": {
            "type": "string",
            "format": "uri"
          },
          "signInUrl": {
            "type": "string",
            "format": "uri",
            "description": "Page where the admin signs into the new tenant (completed only)."
          },
          "tier": {
            "type": "string",
            "description": "Trial tier name (trial)."
          },
          "trialEndDate": {
            "type": "string",
            "format": "date-time"
          },
          "nextSteps": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "reason": {
            "type": "object",
            "description": "Why a terminal request did not complete.",
            "properties": {
              "code": {
                "type": "string"
              },
              "detail": {
                "type": "string"
              },
              "retryable": {
                "type": "boolean"
              }
            }
          }
        }
      },
      "SignupProblem": {
        "type": "object",
        "description": "RFC 9457 problem details for the Signup operations.",
        "required": [
          "type",
          "title",
          "status",
          "code",
          "retryable"
        ],
        "properties": {
          "type": {
            "type": "string",
            "format": "uri"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "Machine-readable problem code (see each response description)."
          },
          "retryable": {
            "type": "boolean"
          },
          "signupRequestId": {
            "type": "string",
            "description": "The already-pending request for this domain (signup_already_pending)."
          },
          "signInUrl": {
            "type": "string",
            "format": "uri",
            "description": "Where an existing DoiT user or customer should sign in instead."
          },
          "appealUrl": {
            "type": "string",
            "format": "uri",
            "description": "Where a blocked signup (code signup_blocked) can ask DoiT to review the decision."
          }
        }
      }
    },
    "parameters": {
      "signupRequestId": {
        "name": "signupRequestId",
        "in": "path",
        "required": true,
        "description": "Public signup request id (sr_ prefix).",
        "schema": {
          "type": "string",
          "pattern": "^sr_[0-9a-f]{32}$"
        }
      }
    },
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "Authorization",
        "description": "Use the \"Bearer <API_KEY>\" format or sign in for autofill",
        "in": "header"
      },
      "tenantId": {
        "type": "apiKey",
        "name": "X-Tenant-Id",
        "description": "Customer (tenant) ID for the request. Separate from your API token: always authenticate with `Authorization: Bearer <token>` (personal or service account). See [Get Started](https://developer.doit.com/docs/start). Omit when your token is scoped to a single customer (resolved automatically). A service account can select an active direct or nested descendant of its home customer; the endpoint's normal permissions, entitlements, and resource-ownership checks still apply. A service-account target outside that customer subtree returns `403 Forbidden`. Prefer this header over the legacy `customerContext` query parameter, which only applies to legacy API keys and is ignored by personal and service account tokens.",
        "in": "header"
      }
    }
  },
  "x-samples-languages": [
    "curl",
    "go",
    "node",
    "python"
  ],
  "x-cli-config": {
    "security": "oauth2",
    "params": {
      "client_id": "cli"
    }
  }
}
```