Swop Server Wallets API

The server-wallets API from Swop, for server-wallets.

GitHub OpenAPI

Operations 6

POST /v1/server/wallets Create an app-owned server wallet (secret key only) #
GET /v1/server/wallets List server wallets #
GET /v1/server/wallets/{walletId} Fetch a server wallet #
POST /v1/server/wallets/{walletId}/intents/signing Queue a signing intent on a server wallet #
POST /v1/server/wallets/{walletId}/intents/transactions Queue a transaction (sign and broadcast) on a server wallet #
GET /v1/server/wallets/{walletId}/intents/{intentId} Fetch a server-wallet intent #

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/swopme-co:swopme-co-server-wallets-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

swopme-co-server-wallets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Swivy Server Wallets API
  version: 1.0.0
  description: Swivy control-plane and runtime API. This contract documents the primary headers and payloads used by the current platform. Legacy migration headers such as x-env-id and x-api-key are still accepted in code, but they are intentionally not the primary documented contract here.
servers:
- url: /
  description: Current Swivy deployment
tags:
- name: server-wallets
paths:
  /v1/server/wallets:
    post:
      tags:
      - server-wallets
      summary: Create an app-owned server wallet (secret key only)
      description: Any number of wallets per chain. `idempotencyKey` returns the same wallet on retry. An optional Ed25519 `authorizationPublicKey` makes every intent require a signature from the matching key.
      operationId: createServerWallet
      security:
      - SwivyAppId: []
        SwivySecretKey: []
      requestBody:
        required: true
        description: Server wallet
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: Server wallet
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          description: Missing or invalid secret key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Publishable key used, or chain not allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Idempotency key reused for a different chain
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    get:
      tags:
      - server-wallets
      summary: List server wallets
      operationId: listServerWallets
      security:
      - SwivyAppId: []
        SwivySecretKey: []
      responses:
        '200':
          description: Server wallets
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          description: Missing or invalid secret key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v1/server/wallets/{walletId}:
    get:
      tags:
      - server-wallets
      summary: Fetch a server wallet
      operationId: getServerWallet
      security:
      - SwivyAppId: []
        SwivySecretKey: []
      parameters:
      - name: walletId
        in: path
        required: true
        description: Server wallet identifier
        schema:
          type: string
          minLength: 1
      responses:
        '200':
          description: Server wallet
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '404':
          description: Server wallet not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v1/server/wallets/{walletId}/intents/signing:
    post:
      tags:
      - server-wallets
      summary: Queue a signing intent on a server wallet
      operationId: createServerWalletSigningIntent
      security:
      - SwivyAppId: []
        SwivySecretKey: []
      parameters:
      - name: walletId
        in: path
        required: true
        description: Server wallet identifier
        schema:
          type: string
          minLength: 1
      requestBody:
        required: true
        description: Intent payload and optional authorization
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: Intent
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionIntentResponse'
        '401':
          description: Missing or invalid authorization signature
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Signing not allowed by environment policy
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Authorization nonce reused
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v1/server/wallets/{walletId}/intents/transactions:
    post:
      tags:
      - server-wallets
      summary: Queue a transaction (sign and broadcast) on a server wallet
      operationId: createServerWalletTransactionIntent
      security:
      - SwivyAppId: []
        SwivySecretKey: []
      parameters:
      - name: walletId
        in: path
        required: true
        description: Server wallet identifier
        schema:
          type: string
          minLength: 1
      requestBody:
        required: true
        description: Intent payload and optional authorization
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: Intent
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionIntentResponse'
        '401':
          description: Missing or invalid authorization signature
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Execution not allowed by environment policy
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v1/server/wallets/{walletId}/intents/{intentId}:
    get:
      tags:
      - server-wallets
      summary: Fetch a server-wallet intent
      operationId: getServerWalletIntent
      security:
      - SwivyAppId: []
        SwivySecretKey: []
      parameters:
      - name: walletId
        in: path
        required: true
        description: Server wallet identifier
        schema:
          type: string
          minLength: 1
      - name: intentId
        in: path
        required: true
        description: Intent identifier
        schema:
          type: string
          minLength: 1
      responses:
        '200':
          description: Intent
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionIntentResponse'
        '404':
          description: Intent not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    TypedData:
      type: object
      required:
      - types
      - message
      properties:
        domain:
          type: object
          additionalProperties: true
        types:
          type: object
          additionalProperties:
            type: array
            items:
              $ref: '#/components/schemas/TypedDataField'
        primaryType:
          anyOf:
          - type: string
          - type: 'null'
        message:
          type: object
          additionalProperties: true
    IntentStatus:
      type: string
      enum:
      - pending_step_up
      - queued
      - processing
      - completed
      - failed
    TypedDataField:
      type: object
      required:
      - name
      - type
      properties:
        name:
          type: string
        type:
          type: string
    ErrorResponse:
      type: object
      required:
      - error
      properties:
        error:
          type: string
        reasons:
          type: array
          items:
            type: string
        supportedActions:
          type: array
          items:
            type: string
    IntentPayload:
      type: object
      properties:
        network:
          anyOf:
          - type: string
          - type: 'null'
        sponsorshipRequested:
          anyOf:
          - type: boolean
          - type: 'null'
        message:
          type: string
        messageHex:
          type: string
          pattern: ^0x[0-9a-fA-F]*$
        messageBase64:
          type: string
        digestHex:
          type: string
          pattern: ^0x[0-9a-fA-F]{64}$
        typedData:
          $ref: '#/components/schemas/TypedData'
        transaction:
          type: object
          additionalProperties: true
        serializedTransactionBase64:
          type: string
        requestedValueUsd:
          anyOf:
          - type: number
          - type: 'null'
    SignerAttestation:
      type: object
      required:
      - mode
      - provider
      - enclaveId
      - measurement
      - issuedAt
      - document
      - signatureAlgorithm
      - signatureBase64
      - publicKeyFingerprint
      properties:
        mode:
          $ref: '#/components/schemas/SecureSignerMode'
        provider:
          type: string
        enclaveId:
          type: string
        measurement:
          type: string
        issuedAt:
          type: string
          format: date-time
        document:
          type: string
        signatureAlgorithm:
          type: string
          enum:
          - ed25519
        signatureBase64:
          type: string
        publicKeyFingerprint:
          type: string
        imageSha384:
          type: string
        pcrs:
          $ref: '#/components/schemas/NitroPcrMap'
        kmsKeyArn:
          type: string
    NitroPcrMap:
      type: object
      additionalProperties:
        type: string
    TransactionIntentResponse:
      type: object
      required:
      - intent
      properties:
        intent:
          $ref: '#/components/schemas/TransactionIntent'
    ExecutionResult:
      type: object
      required:
      - status
      properties:
        status:
          type: string
          enum:
          - completed
          - failed
        signature:
          type: string
        signedPayload:
          type: string
        transactionHash:
          type: string
        error:
          type: string
        attestation:
          $ref: '#/components/schemas/SignerAttestation'
        metadata:
          type: object
          additionalProperties: true
    SecureSignerMode:
      type: string
      enum:
      - software
      - mock_tee
      - nitro_tee
    TransactionIntent:
      type: object
      required:
      - id
      - environmentId
      - identityId
      - accountId
      - chain
      - kind
      - status
      - requiresMfa
      - challengeId
      - payload
      - result
      - createdAt
      - updatedAt
      properties:
        id:
          type: string
        environmentId:
          type: string
        identityId:
          type: string
        accountId:
          type: string
        chain:
          $ref: '#/components/schemas/Chain'
        kind:
          $ref: '#/components/schemas/IntentKind'
        status:
          $ref: '#/components/schemas/IntentStatus'
        requiresMfa:
          type: boolean
        challengeId:
          anyOf:
          - type: string
          - type: 'null'
        payload:
          $ref: '#/components/schemas/IntentPayload'
        result:
          anyOf:
          - $ref: '#/components/schemas/ExecutionResult'
          - type: 'null'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    IntentKind:
      type: string
      enum:
      - sign_message
      - sign_digest
      - sign_typed_data
      - sign_transaction
      - execute_transaction
    Chain:
      type: string
      enum:
      - evm
      - solana
  securitySchemes:
    McpAccessToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Resource-bound MCP OAuth access token; live session, client and approved wallet scopes required.
    AdminToken:
      type: apiKey
      in: header
      name: x-admin-token
      description: Deployment-level control-plane admin token.
    SwivyAdminKey:
      type: apiKey
      in: header
      name: x-swivy-admin-key
      description: Organization-scoped control-plane admin credential. Supported on organization, project, and environment management routes.
    SwivyAppId:
      type: apiKey
      in: header
      name: x-swivy-app-id
      description: Environment-scoped public app identifier.
    SwivyPublishableKey:
      type: apiKey
      in: header
      name: x-swivy-publishable-key
      description: Environment-scoped browser or mobile credential.
    SwivySecretKey:
      type: apiKey
      in: header
      name: x-swivy-secret-key
      description: Environment-scoped server credential.
    BearerSession:
      type: http
      scheme: bearer
      bearerFormat: opaque session token
      description: Opaque runtime session token returned by email verification or OIDC token exchange.
    OidcAccessToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Swivy-issued OIDC access token.