---
updatedAt: 2026-09-29T10:28:17.000Z
agentTools:
  projectIndex: https://developer.doit.com/llms.txt
---

# Sign the verified prospect in

Exchanges the one-time activationToken returned by verifySignupRequest for a Firebase custom token once the request is completed, so the browser that entered the code lands in the new tenant without a second email. The token is bound to the request, single-use and valid for 10 minutes. Sign in with signInWithCustomToken against tenantId, then open consoleUrl.

# 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}/session": {
      "post": {
        "tags": [
          "Signup"
        ],
        "summary": "Sign the verified prospect in",
        "description": "Exchanges the one-time activationToken returned by verifySignupRequest for a Firebase custom token once the request is completed, so the browser that entered the code lands in the new tenant without a second email. The token is bound to the request, single-use and valid for 10 minutes. Sign in with signInWithCustomToken against tenantId, then open consoleUrl.",
        "operationId": "createSignupSession",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/signupRequestId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SignupSessionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK - a session for the tenant admin.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SignupSession"
                }
              }
            }
          },
          "400": {
            "description": "code is one of invalid_request, activation_token_invalid.",
            "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": "activation_not_ready (provisioning still running, retry) or activation_token_used.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/SignupProblem"
                }
              }
            }
          },
          "410": {
            "description": "activation_token_expired - use the sign-in link from the completion page instead.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/SignupProblem"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "SignupSessionRequest": {
        "type": "object",
        "required": [
          "activationToken"
        ],
        "properties": {
          "activationToken": {
            "type": "string",
            "description": "The one-time token returned by verifySignupRequest."
          }
        }
      },
      "SignupSession": {
        "type": "object",
        "required": [
          "customToken",
          "tenantId",
          "customerId"
        ],
        "properties": {
          "customToken": {
            "type": "string",
            "description": "Firebase custom token for the tenant admin; exchange it with signInWithCustomToken."
          },
          "tenantId": {
            "type": "string"
          },
          "customerId": {
            "type": "string"
          },
          "consoleUrl": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "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"
    }
  }
}
```