crob.at Account API

Optional same-origin helpers that use a crob.at browser session.

Operations 2

GET /api/me Read the current user #
POST /api/showdown/assertion Start browser-side Showdown assertion generation #

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/crob-at-account-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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

crob-at-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: crob.at Account API
  version: 1.0.0
  description: Create, retrieve, and generate competitive Pokemon Showdown teams, read reference data, and use optional crob.at session helpers.
  termsOfService: https://crob.at/api#terms
  contact:
    name: crob.at API support
    url: https://crob.at/contact
    email: admin@crob.at
servers:
- url: https://crob.at
  description: Production
security: []
tags:
- name: Account
  description: Optional same-origin helpers that use a crob.at browser session.
paths:
  /api/me:
    get:
      tags:
      - Account
      summary: Read the current user
      description: Returns the current crob.at user when a valid browser session cookie is present, otherwise returns a null user.
      operationId: getCurrentUser
      security:
      - cookieSession: []
      - {}
      responses:
        '200':
          description: The current user or null.
          content:
            application/json:
              schema:
                type: object
                required:
                - user
                properties:
                  user:
                    oneOf:
                    - $ref: '#/components/schemas/CurrentUser'
                    - type: 'null'
  /api/showdown/assertion:
    post:
      tags:
      - Account
      summary: Start browser-side Showdown assertion generation
      description: Redirects the signed-in user's browser to Pokemon Showdown so the challstr-specific assertion is generated from the user's network rather than crob.at's server.
      operationId: createShowdownAssertion
      security:
      - cookieSession: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - challstr
              properties:
                challstr:
                  type: string
                  minLength: 1
                  maxLength: 2048
                  pattern: ^[^\r\n]+$
                  description: A Pokemon Showdown challenge string without line breaks.
      responses:
        '303':
          description: Redirect to Pokemon Showdown's OAuth assertion endpoint.
          headers:
            Location:
              required: true
              schema:
                type: string
                format: uri
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          description: A linked, authenticated Showdown account is required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Showdown OAuth is not configured.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CurrentUser:
      type: object
      required:
      - username
      - email
      - ps_username
      - team_count
      - favorite_count
      properties:
        username:
          type: string
        email:
          type:
          - string
          - 'null'
          format: email
        ps_username:
          type:
          - string
          - 'null'
        team_count:
          type: integer
          minimum: 0
        favorite_count:
          type: integer
          minimum: 0
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
        message:
          type: string
        retryAfter:
          type: integer
          minimum: 1
  responses:
    BadRequest:
      description: The request body or route parameter is invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    cookieSession:
      type: apiKey
      in: cookie
      name: session
      description: Optional crob.at browser session cookie. Public endpoints do not require it.
externalDocs:
  description: Human-readable API documentation
  url: https://crob.at/api