Swop Server Users API

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

GitHub OpenAPI

Operations 7

POST /v1/server/users Create (or find by email) a user, optionally with wallets #
GET /v1/server/users Look up a user by email #
GET /v1/server/users/list List users with their auth-method types and MFA posture #
POST /v1/server/users/{userId}/wallets Create a managed wallet for an existing user #
GET /v1/server/users/{userId} Fetch a user by id #
DELETE /v1/server/users/{userId} Delete a user's personal data and access (wallets are kept) #
POST /v1/server/sessions/verify Verify a user's session token from a backend #

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-users-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-users-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Swivy Server Users 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-users
paths:
  /v1/server/users:
    post:
      tags:
      - server-users
      summary: Create (or find by email) a user, optionally with wallets
      operationId: createServerUser
      security:
      - SwivyAppId: []
        SwivySecretKey: []
      requestBody:
        required: true
        description: Email, externalUserId, createWallets
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: User
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: Reserved email domain
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    get:
      tags:
      - server-users
      summary: Look up a user by email
      operationId: getServerUserByEmail
      security:
      - SwivyAppId: []
        SwivySecretKey: []
      parameters:
      - name: email
        in: query
        required: true
        description: User email
        schema:
          type: string
          format: email
      responses:
        '200':
          description: User with wallets and auth methods
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '404':
          description: User not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v1/server/users/list:
    get:
      tags:
      - server-users
      summary: List users with their auth-method types and MFA posture
      operationId: listServerUsers
      security:
      - SwivyAppId: []
        SwivySecretKey: []
      parameters:
      - name: limit
        in: query
        required: false
        description: Max rows (1-500)
        schema:
          type: string
          minLength: 1
      - name: cursor
        in: query
        required: false
        description: nextCursor from the previous page
        schema:
          type: string
          minLength: 1
      responses:
        '200':
          description: Users page
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
  /v1/server/users/{userId}/wallets:
    post:
      tags:
      - server-users
      summary: Create a managed wallet for an existing user
      operationId: createServerUserWallet
      security:
      - SwivyAppId: []
        SwivySecretKey: []
      parameters:
      - name: userId
        in: path
        required: true
        description: Identity identifier
        schema:
          type: string
          minLength: 1
      requestBody:
        required: true
        description: Chain and label
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: Managed account
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '403':
          description: Chain not allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: User not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v1/server/users/{userId}:
    get:
      tags:
      - server-users
      summary: Fetch a user by id
      operationId: getServerUser
      security:
      - SwivyAppId: []
        SwivySecretKey: []
      parameters:
      - name: userId
        in: path
        required: true
        description: Identity identifier
        schema:
          type: string
          minLength: 1
      responses:
        '200':
          description: User with wallets and auth methods
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '404':
          description: User not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    delete:
      tags:
      - server-users
      summary: Delete a user's personal data and access (wallets are kept)
      operationId: deleteServerUser
      security:
      - SwivyAppId: []
        SwivySecretKey: []
      parameters:
      - name: userId
        in: path
        required: true
        description: Identity identifier
        schema:
          type: string
          minLength: 1
      responses:
        '200':
          description: Deleted
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '404':
          description: User not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v1/server/sessions/verify:
    post:
      tags:
      - server-users
      summary: Verify a user's session token from a backend
      operationId: verifySessionToken
      security:
      - SwivyAppId: []
        SwivySecretKey: []
      requestBody:
        required: true
        description: Session token
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: Session
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          description: Invalid or expired session
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      required:
      - error
      properties:
        error:
          type: string
        reasons:
          type: array
          items:
            type: string
        supportedActions:
          type: array
          items:
            type: string
  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.