SolKnife Auth API

The Auth API from SolKnife — 4 operation(s) for auth.

GitHub OpenAPI

Operations 4

POST /api/auth/challenge Generate a SIWS message to sign #
POST /api/auth/verify Create a session from a signed SIWS message #
GET /api/auth/status Fetch the current session state #
POST /api/auth/logout Delete the session cookie #

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/solknife-xyz:solknife-xyz-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

solknife-xyz-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SolKnife Auth API
  description: 'Non-custodial Solana toolkit. Every UI action is reachable over JSON HTTP: the server builds unsigned transactions, the caller signs, the server submits. Also available as an MCP server at /api/mcp.'
  version: 1.0.0
  contact:
    email: admin@solknife.xyz
  x-guidance: 'Every write is a two-step, non-custodial flow: POST to a /build endpoint to get an unsigned base64 VersionedTransaction, sign it with your own key, then POST the signed tx to the matching /execute endpoint. The server never holds your keys. Reads are plain GETs. Paid endpoints answer 402 with an x402 v2 challenge: pay the `exact` entry in USDC and retry with the PAYMENT-SIGNATURE header.'
servers:
- url: https://solknife.xyz
tags:
- name: Auth
paths:
  /api/auth/challenge:
    post:
      operationId: auth_challenge
      summary: Generate a SIWS message to sign
      description: Start a Sign-In With Solana handshake. Returns the exact message bytes to sign, plus the nonce to echo back to /api/auth/verify.
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                wallet:
                  type: string
                  pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
                  description: The Solana address that will sign, in base58.
              required:
              - wallet
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
      tags:
      - Auth
  /api/auth/verify:
    post:
      operationId: auth_verify
      summary: Create a session from a signed SIWS message
      description: Verify the signature from /api/auth/challenge. On success sets the HttpOnly `solknife-session` cookie and the `solknife-csrf` cookie. The session serves the SolKnife browser UI and the operator dashboard; API and MCP calls are still charged per call.
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                wallet:
                  type: string
                  pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
                  description: The same address you passed to /api/auth/challenge.
                message:
                  type: string
                  description: The message returned by /api/auth/challenge, byte-for-byte.
                nonce:
                  type: string
                  description: The nonce returned by /api/auth/challenge.
                signatureBase64:
                  type: string
                  description: Base64 of the Ed25519 signature over the message bytes.
              required:
              - wallet
              - message
              - nonce
              - signatureBase64
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
      tags:
      - Auth
  /api/auth/status:
    get:
      operationId: auth_status
      summary: Fetch the current session state
      description: Returns the signed-in wallet when the `solknife-session` and `solknife-csrf` cookies are present, match, and are unexpired.
      security: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
      tags:
      - Auth
  /api/auth/logout:
    post:
      operationId: auth_logout
      summary: Delete the session cookie
      description: Ends the session and clears both session cookies.
      security: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
      tags:
      - Auth