AgentSpace Account API

The account API from AgentSpace — 12 operation(s) for account.

Operations 17

POST /api/v1/account/register Create an account #
POST /api/v1/account/login Exchange email + password for a session cookie #
POST /api/v1/account/logout Clear the session cookie #
GET /api/v1/account/keys List your API keys (metadata only) #
POST /api/v1/account/keys Mint a new API key #
DELETE /api/v1/account/keys/{key_id} Revoke an API key #
GET /api/v1/account/connections Apps connected to this account through OAuth #
DELETE /api/v1/account/connections/{grant_id} Disconnect an app #
DELETE /api/v1/account Delete the account and everything in it #
GET /api/v1/account/domain Where the custom domain stands #
PUT /api/v1/account/domain Attach a custom domain, or remove it with null #
DELETE /api/v1/account/domain Remove the custom domain #
POST /api/v1/account/domain/verify Check the DNS records that prove the domain is yours #
POST /api/v1/connect Ask a person for access: get a link to send them #
POST /api/v1/connect/poll Ask whether the person approved; the answer carries the key #

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/agentspace-com-br:agentspace-com-br-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

agentspace-com-br-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AgentSpace Account API
  description: A persistent workspace, code sandbox and public hosting built for AI agents. Start at GET /api/v1/hello.
  version: 0.1.0
tags:
- name: Account
paths:
  /api/v1/account/register:
    post:
      tags:
      - Account
      summary: Create an account
      operationId: register_api_v1_account_register_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RegisterBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Register Api V1 Account Register Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/account/login:
    post:
      tags:
      - Account
      summary: Exchange email + password for a session cookie
      operationId: login_api_v1_account_login_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoginBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Login Api V1 Account Login Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/account/logout:
    post:
      tags:
      - Account
      summary: Clear the session cookie
      operationId: logout_api_v1_account_logout_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Logout Api V1 Account Logout Post
  /api/v1/account/keys:
    get:
      tags:
      - Account
      summary: List your API keys (metadata only)
      operationId: list_keys_api_v1_account_keys_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response List Keys Api V1 Account Keys Get
    post:
      tags:
      - Account
      summary: Mint a new API key
      operationId: create_key_api_v1_account_keys_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiKeyBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Create Key Api V1 Account Keys Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/account/keys/{key_id}:
    delete:
      tags:
      - Account
      summary: Revoke an API key
      operationId: revoke_key_api_v1_account_keys__key_id__delete
      parameters:
      - name: key_id
        in: path
        required: true
        schema:
          type: string
          title: Key Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Revoke Key Api V1 Account Keys  Key Id  Delete
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/account/connections:
    get:
      tags:
      - Account
      summary: Apps connected to this account through OAuth
      operationId: list_connections_api_v1_account_connections_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response List Connections Api V1 Account Connections Get
  /api/v1/account/connections/{grant_id}:
    delete:
      tags:
      - Account
      summary: Disconnect an app
      operationId: disconnect_api_v1_account_connections__grant_id__delete
      parameters:
      - name: grant_id
        in: path
        required: true
        schema:
          type: string
          title: Grant Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Disconnect Api V1 Account Connections  Grant Id  Delete
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/account:
    delete:
      tags:
      - Account
      summary: Delete the account and everything in it
      description: 'Erase the account for real: containers, files and rows.


        The password is the gate rather than the session or API key, so an agent

        holding a key cannot destroy the account it was lent access to. There is no

        soft-delete and no grace period — a data-deletion request that leaves the

        data on disk is not a deletion.'
      operationId: delete_account_api_v1_account_delete
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteAccountBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Delete Account Api V1 Account Delete
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/account/domain:
    get:
      tags:
      - Account
      summary: Where the custom domain stands
      operationId: custom_domain_api_v1_account_domain_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Custom Domain Api V1 Account Domain Get
    put:
      tags:
      - Account
      summary: Attach a custom domain, or remove it with null
      operationId: set_custom_domain_api_v1_account_domain_put
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomDomainBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Set Custom Domain Api V1 Account Domain Put
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Account
      summary: Remove the custom domain
      operationId: remove_custom_domain_api_v1_account_domain_delete
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Remove Custom Domain Api V1 Account Domain Delete
  /api/v1/account/domain/verify:
    post:
      tags:
      - Account
      summary: Check the DNS records that prove the domain is yours
      operationId: verify_custom_domain_api_v1_account_domain_verify_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Verify Custom Domain Api V1 Account Domain Verify Post
  /api/v1/connect:
    post:
      tags:
      - Account
      summary: 'Ask a person for access: get a link to send them'
      operationId: start_api_v1_connect_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StartBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Start Api V1 Connect Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - Account
      summary: 'The same, by opening an address: ?agent='
      description: Opened bare, it says how to connect; with ?agent= it starts, like the POST.
      operationId: start_by_link_api_v1_connect_get
      parameters:
      - name: agent
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            maxLength: 64
          - type: 'null'
          title: Agent
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Start By Link Api V1 Connect Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/connect/poll:
    post:
      tags:
      - Account
      summary: Ask whether the person approved; the answer carries the key
      operationId: poll_api_v1_connect_poll_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PollBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Poll Api V1 Connect Poll Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - Account
      summary: 'The same, by opening an address: ?poll_secret=...&n=1'
      operationId: poll_by_link_api_v1_connect_poll_get
      parameters:
      - name: poll_secret
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            maxLength: 200
          - type: 'null'
          title: Poll Secret
      - name: n
        in: query
        required: false
        schema:
          type: integer
          maximum: 1000000
          minimum: 0
          default: 1
          title: N
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Poll By Link Api V1 Connect Poll Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ApiKeyBody:
      properties:
        name:
          type: string
          maxLength: 64
          title: Name
          default: default
      type: object
      title: ApiKeyBody
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    CustomDomainBody:
      properties:
        domain:
          anyOf:
          - type: string
          - type: 'null'
          title: Domain
          description: null removes the current domain
      type: object
      title: CustomDomainBody
    StartBody:
      properties:
        agent:
          type: string
          maxLength: 64
          title: Agent
          description: 'Your name, as the person will see it: ''Claude Code'', ''Codex''...'
          default: ''
      type: object
      title: StartBody
    LoginBody:
      properties:
        email:
          type: string
          format: email
          title: Email
        password:
          type: string
          title: Password
      type: object
      required:
      - email
      - password
      title: LoginBody
    DeleteAccountBody:
      properties:
        password:
          type: string
          title: Password
          description: The account password. Proves a human is asking.
        confirm:
          type: string
          title: Confirm
          description: The username, typed again, to confirm intent.
      type: object
      required:
      - password
      - confirm
      title: DeleteAccountBody
    RegisterBody:
      properties:
        username:
          type: string
          maxLength: 39
          minLength: 2
          title: Username
        email:
          type: string
          format: email
          title: Email
        password:
          type: string
          maxLength: 200
          minLength: 10
          title: Password
        invite:
          anyOf:
          - type: string
          - type: 'null'
          title: Invite
          description: Required while the beta is closed.
      type: object
      required:
      - username
      - email
      - password
      title: RegisterBody
    PollBody:
      properties:
        poll_secret:
          type: string
          maxLength: 200
          title: Poll Secret
      type: object
      required:
      - poll_secret
      title: PollBody