ColdState Auth API

Accounts, sessions, API keys

GitHub OpenAPI

Operations 10

POST /v1/auth/register Create an account (returns first API key) #
POST /v1/auth/login Log in (returns a dashboard session token) #
POST /v1/auth/forgot-password Request a password reset email #
POST /v1/auth/reset-password Consume a reset token #
GET /v1/auth/keys List API keys (prefixes only) #
POST /v1/auth/keys/create Create an additional API key #
POST /v1/auth/keys/rotate Deactivate all keys and issue a new one #
DELETE /v1/auth/keys/{keyId} Delete a key #
POST /v1/auth/keys/{keyId}/deactivate Deactivate a key #
POST /v1/auth/logout Revoke the current session #

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/coldstate-ai:coldstate-ai-auth-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

coldstate-ai-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Coldstate Ai Auth API
  version: 0.1.0
  contact:
    name: ColdState
    url: https://services.coldstate.ai
    email: daniel@coldstate.ai
  termsOfService: https://services.coldstate.ai/terms
  description: 'Operations tagged Auth across 2 of this provider''s published API definitions: coldstate-ai-openapi.json, coldstate-ai-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://cold-api.coldstate.ai
security:
- bearerAuth: []
tags:
- name: Auth
  description: Accounts, sessions, API keys
paths:
  /v1/auth/register:
    post:
      tags:
      - Auth
      security: []
      summary: Create an account (returns first API key)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RegisterRequest'
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthResponse'
        '400':
          description: Validation error / email taken
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postV1AuthRegister
      x-operation-id-source: derived
    servers:
    - url: https://cold-api.coldstate.ai
  /v1/auth/login:
    post:
      tags:
      - Auth
      security: []
      summary: Log in (returns a dashboard session token)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoginRequest'
      responses:
        '200':
          description: OK
        '401':
          description: Invalid credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Locked or rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postV1AuthLogin
      x-operation-id-source: derived
    servers:
    - url: https://cold-api.coldstate.ai
  /v1/auth/forgot-password:
    post:
      tags:
      - Auth
      security: []
      summary: Request a password reset email
      responses:
        '200':
          description: Always the same message
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postV1AuthForgotPassword
      x-operation-id-source: derived
    servers:
    - url: https://cold-api.coldstate.ai
  /v1/auth/reset-password:
    post:
      tags:
      - Auth
      security: []
      summary: Consume a reset token
      responses:
        '200':
          description: OK
        '400':
          description: Invalid or expired token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postV1AuthResetPassword
      x-operation-id-source: derived
    servers:
    - url: https://cold-api.coldstate.ai
  /v1/auth/keys:
    get:
      tags:
      - Auth
      summary: List API keys (prefixes only)
      responses:
        '200':
          description: OK
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate or quota limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1AuthKeys
      x-operation-id-source: derived
    servers:
    - url: https://cold-api.coldstate.ai
  /v1/auth/keys/create:
    post:
      tags:
      - Auth
      summary: Create an additional API key
      responses:
        '201':
          description: OK
        '400':
          description: Key limit reached
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate or quota limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postV1AuthKeysCreate
      x-operation-id-source: derived
    servers:
    - url: https://cold-api.coldstate.ai
  /v1/auth/keys/rotate:
    post:
      tags:
      - Auth
      summary: Deactivate all keys and issue a new one
      responses:
        '200':
          description: OK
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate or quota limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postV1AuthKeysRotate
      x-operation-id-source: derived
    servers:
    - url: https://cold-api.coldstate.ai
  /v1/auth/keys/{keyId}:
    delete:
      tags:
      - Auth
      summary: Delete a key
      parameters:
      - name: keyId
        in: path
        required: true
        description: key_…
        schema:
          type: string
      responses:
        '200':
          description: OK
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate or quota limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: deleteV1AuthKeysByKeyId
      x-operation-id-source: derived
    servers:
    - url: https://cold-api.coldstate.ai
  /v1/auth/keys/{keyId}/deactivate:
    post:
      tags:
      - Auth
      summary: Deactivate a key
      parameters:
      - name: keyId
        in: path
        required: true
        description: key_…
        schema:
          type: string
      responses:
        '200':
          description: OK
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate or quota limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postV1AuthKeysByKeyIdDeactivate
      x-operation-id-source: derived
    servers:
    - url: https://cold-api.coldstate.ai
  /v1/auth/logout:
    post:
      tags:
      - Auth
      summary: Revoke the current session
      responses:
        '200':
          description: OK
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate or quota limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postV1AuthLogout
      x-operation-id-source: derived
    servers:
    - url: https://cold-api.coldstate.ai
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        statusCode:
          type: integer
      required:
      - error
      - message
      - statusCode
    RegisterRequest:
      type: object
      required:
      - email
      - password
      - company_name
      properties:
        email:
          type: string
          format: email
        password:
          type: string
          minLength: 8
          maxLength: 128
        company_name:
          type: string
          maxLength: 200
    AuthResponse:
      type: object
      properties:
        customer_id:
          type: string
        api_key:
          type: string
        session_token:
          type: string
        tier:
          type: string
        message:
          type: string
    LoginRequest:
      type: object
      required:
      - email
      - password
      properties:
        email:
          type: string
          format: email
        password:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key `cs_live_…` (or dashboard session `cs_sess_…`)
externalDocs:
  description: Human-readable API reference
  url: https://services.coldstate.ai/docs
x-refined-from:
- coldstate-ai-openapi.json
- coldstate-ai-openapi.yml