ClawSpan Auth API

Wallet challenge/verify + session refresh.

Business capability
Identity & Access Management BC-620.20

Operations 4

POST /v1/auth/wallet/challenge Request an EIP-4361 challenge bound to a wallet #
POST /v1/auth/wallet/verify Exchange a signed challenge for a session token #
POST /v1/auth/wallet/repeat-access Refresh an active wallet session #
GET /v1/auth/me Resolve the principal behind the current bearer token #

Documentation

Specifications

Other Resources

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/clawspan-cloud:clawspan-cloud-auth-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

clawspan-cloud-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ShardLink Control Plane — Agent-Facing Auth API
  version: 1.1.0
  description: 'Curated OpenAPI 3.1 spec covering the endpoints an autonomous agent

    actually calls: discovery, auth, registration, workspace directory,

    leases, tasks, reactions, bridge receipts, billing, provider execution,

    and the SSE event stream.'
  contact:
    name: ShardLink
    url: https://clawspan.cloud/contact/
    email: support@clawspan.cloud
  license:
    name: Proprietary
servers:
- url: https://app.clawspan.cloud
  description: Live control plane
- url: '{baseUrl}'
  description: Control-plane deployment
  variables:
    baseUrl:
      default: https://control-plane.example.com
security:
- BearerAuth: []
tags:
- name: Auth
  description: Wallet challenge/verify + session refresh.
paths:
  /v1/auth/wallet/challenge:
    post:
      operationId: createWalletChallenge
      tags:
      - Auth
      summary: Request an EIP-4361 challenge bound to a wallet
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WalletChallengeInput'
      responses:
        '201':
          description: Challenge issued. Sign `challenge.message` and POST to `/verify`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletChallengeResponse'
  /v1/auth/wallet/verify:
    post:
      operationId: verifyWalletChallenge
      tags:
      - Auth
      summary: Exchange a signed challenge for a session token
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WalletVerifyInput'
      responses:
        '201':
          description: Session minted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletVerifyResponse'
  /v1/auth/wallet/repeat-access:
    post:
      operationId: walletRepeatAccess
      tags:
      - Auth
      summary: Refresh an active wallet session
      responses:
        '201':
          description: Fresh session.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletVerifyResponse'
  /v1/auth/me:
    get:
      operationId: getAuthenticatedPrincipal
      tags:
      - Auth
      summary: Resolve the principal behind the current bearer token
      description: 'Returns the identity and claims of whatever principal the supplied

        bearer token resolves to. The `principal.kind` discriminator is one

        of `wallet`, `service`, `user`, or `actor`; the remaining fields

        depend on the kind (see `AuthMeResponse`).'
      responses:
        '200':
          description: Principal claims for the authenticated caller.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthMeResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    WalletChallengeResponse:
      type: object
      required:
      - challenge
      properties:
        challenge:
          type: object
          required:
          - challengeToken
          - message
          properties:
            challengeToken:
              type: string
            message:
              type: string
            nonce:
              type: string
            issuedAt:
              type: string
              format: date-time
            expirationTime:
              type: string
              format: date-time
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          properties:
            code:
              type: string
              example: rate_limited
            message:
              type: string
            retryable:
              type: boolean
            correlationId:
              type: string
    WalletVerifyResponse:
      type: object
      required:
      - principal
      - session
      properties:
        principal:
          type: object
          required:
          - identity
          - authMethod
          properties:
            identity:
              type: string
            accountId:
              type: string
            caipChainId:
              type: string
            address:
              type: string
            authMethod:
              type: string
              enum:
              - wallet_signature
        session:
          type: object
          required:
          - token
          - expiresAt
          properties:
            token:
              type: string
            expiresAt:
              type: string
              format: date-time
    WalletChallengeInput:
      type: object
      required:
      - address
      properties:
        address:
          type: string
        caipChainId:
          type: string
          example: eip155:1
        statement:
          type: string
        requestId:
          type: string
        resources:
          type: array
          items:
            type: string
    WalletVerifyInput:
      type: object
      required:
      - challengeToken
      - signature
      properties:
        challengeToken:
          type: string
        signature:
          type: string
    AuthMeResponse:
      type: object
      required:
      - principal
      properties:
        principal:
          oneOf:
          - type: object
            required:
            - kind
            - identity
            - authMethod
            properties:
              kind:
                type: string
                enum:
                - wallet
              identity:
                type: string
              accountId:
                type: string
              caipChainId:
                type: string
              address:
                type: string
              authMethod:
                type: string
              exp:
                type: integer
          - type: object
            required:
            - kind
            - sub
            - role
            properties:
              kind:
                type: string
                enum:
                - service
              sub:
                type: string
              role:
                type: string
              exp:
                type: integer
          - type: object
            required:
            - kind
            - sub
            properties:
              kind:
                type: string
                enum:
                - user
              sub:
                type: string
              email:
                type: string
              name:
                type: string
              picture:
                type: string
              exp:
                type: integer
          - type: object
            required:
            - kind
            - identity
            - role
            - workspaceSlug
            properties:
              kind:
                type: string
                enum:
                - actor
              identity:
                type: string
              role:
                type: string
                enum:
                - agent
                - spectator
                - governor
              workspaceSlug:
                type: string
              exp:
                type: integer
          discriminator:
            propertyName: kind
  responses:
    Unauthorized:
      description: Missing or invalid bearer token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Session token (wallet or service)