Archivist AI Users API

The users API from Archivist AI — 6 operation(s) for users.

Operations 8

POST /v1/users/me/push-tokens Register Push Token #
DELETE /v1/users/me/push-tokens Unregister Push Token #
DELETE /v1/users/me Delete Me #
GET /v1/users/me Get Me #
GET /v1/users/me/invitations Get My Pending Invitations #
POST /v1/users/me/invitations/accept-token Accept My Invitation By Token #
POST /v1/users/me/invitations/{invitation_id}/accept Accept My Invitation #
POST /v1/users/me/invitations/{invitation_id}/decline Decline My Invitation #

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/myarchivist-ai:myarchivist-ai-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

myarchivist-ai-users-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Archivist Public Users API
  description: Public API for Archivist - Tabletop RPG Campaign Management
  version: 1.0.0
tags:
- name: Users
paths:
  /v1/users/me/push-tokens:
    post:
      tags:
      - Users
      summary: Register Push Token
      description: Register or refresh this device for the signed-in mobile account.
      operationId: register_push_token_v1_users_me_push_tokens_post
      security:
      - HTTPBearer: []
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PushTokenRegistration'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PushTokenRead'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Users
      summary: Unregister Push Token
      description: Disable only this account's registration for the current device.
      operationId: unregister_push_token_v1_users_me_push_tokens_delete
      security:
      - HTTPBearer: []
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PushTokenUnregister'
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/users/me:
    delete:
      tags:
      - Users
      summary: Delete Me
      description: 'Delete the signed-in account (required for app store listings).


        Delegated to the web app so mobile and web share one path: the Clerk user is

        deleted and the `user.deleted` webhook performs the soft delete. Works for

        users with a lapsed subscription; API keys are not accepted.'
      operationId: delete_me_v1_users_me_delete
      security:
      - HTTPBearer: []
      responses:
        '204':
          description: Successful Response
    get:
      tags:
      - Users
      summary: Get Me
      operationId: get_me_v1_users_me_get
      security:
      - HTTPBearer: []
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserProfile'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/users/me/invitations:
    get:
      tags:
      - Users
      summary: Get My Pending Invitations
      operationId: get_my_pending_invitations_v1_users_me_invitations_get
      security:
      - HTTPBearer: []
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/users/me/invitations/accept-token:
    post:
      tags:
      - Users
      summary: Accept My Invitation By Token
      operationId: accept_my_invitation_by_token_v1_users_me_invitations_accept_token_post
      security:
      - HTTPBearer: []
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
              title: Payload
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/users/me/invitations/{invitation_id}/accept:
    post:
      tags:
      - Users
      summary: Accept My Invitation
      operationId: accept_my_invitation_v1_users_me_invitations__invitation_id__accept_post
      security:
      - HTTPBearer: []
      parameters:
      - name: invitation_id
        in: path
        required: true
        schema:
          type: string
          title: Invitation Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/users/me/invitations/{invitation_id}/decline:
    post:
      tags:
      - Users
      summary: Decline My Invitation
      operationId: decline_my_invitation_v1_users_me_invitations__invitation_id__decline_post
      security:
      - HTTPBearer: []
      parameters:
      - name: invitation_id
        in: path
        required: true
        schema:
          type: string
          title: Invitation Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UserRole:
      type: string
      enum:
      - user
      - player
      - admin
      title: UserRole
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PushTokenRead:
      properties:
        registered:
          type: boolean
          title: Registered
          default: true
        platform:
          type: string
          enum:
          - ios
          - android
          title: Platform
        app_version:
          anyOf:
          - type: string
          - type: 'null'
          title: App Version
      type: object
      required:
      - platform
      title: PushTokenRead
    LaunchPromoState:
      properties:
        active:
          type: boolean
          title: Active
        ends_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Ends At
      type: object
      required:
      - active
      title: LaunchPromoState
    SubscriptionTier:
      type: string
      enum:
      - casual
      - seasoned
      - pro
      - legend
      - godmode
      - trial
      title: SubscriptionTier
    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
    AccountAccess:
      properties:
        level:
          type: string
          title: Level
        subscription_status:
          anyOf:
          - type: string
          - type: 'null'
          title: Subscription Status
        can_create_campaign:
          type: boolean
          title: Can Create Campaign
          default: true
        blocked:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Blocked
      type: object
      required:
      - level
      title: AccountAccess
      description: What this account's plan currently allows. Reading existing content is always allowed.
    SubscriptionStatus:
      type: string
      enum:
      - incomplete
      - active
      - past_due
      - canceled
      - incomplete_expired
      - trialing
      - unpaid
      - paused
      title: SubscriptionStatus
    PushTokenUnregister:
      properties:
        expo_push_token:
          type: string
          maxLength: 255
          minLength: 20
          title: Expo Push Token
      type: object
      required:
      - expo_push_token
      title: PushTokenUnregister
    UserProfile:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        given_name:
          type: string
          title: Given Name
        family_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Family Name
        picture:
          anyOf:
          - type: string
          - type: 'null'
          title: Picture
        role:
          $ref: '#/components/schemas/UserRole'
        verified:
          type: boolean
          title: Verified
        created_at:
          type: string
          format: date-time
          title: Created At
        email:
          type: string
          title: Email
        subscription_tier:
          anyOf:
          - $ref: '#/components/schemas/SubscriptionTier'
          - type: 'null'
        subscription_status:
          anyOf:
          - $ref: '#/components/schemas/SubscriptionStatus'
          - type: 'null'
        last_login:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Login
        new_user:
          type: boolean
          title: New User
        campaign_slots_remaining:
          anyOf:
          - type: integer
          - type: 'null'
          title: Campaign Slots Remaining
        any_sessions_remaining:
          anyOf:
          - type: integer
          - type: 'null'
          title: Any Sessions Remaining
        text_sessions_remaining:
          anyOf:
          - type: integer
          - type: 'null'
          title: Text Sessions Remaining
        billing_cycle_start:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Billing Cycle Start
        billing_cycle_end:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Billing Cycle End
        scopes:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Scopes
        api_profile:
          anyOf:
          - type: string
          - type: 'null'
          title: Api Profile
        launch_promo:
          anyOf:
          - $ref: '#/components/schemas/LaunchPromoState'
          - type: 'null'
        access:
          anyOf:
          - $ref: '#/components/schemas/AccountAccess'
          - type: 'null'
      type: object
      required:
      - id
      - name
      - given_name
      - role
      - verified
      - created_at
      - email
      - new_user
      title: UserProfile
      description: Extended user profile for authenticated users
    PushTokenRegistration:
      properties:
        expo_push_token:
          type: string
          maxLength: 255
          minLength: 20
          title: Expo Push Token
        platform:
          type: string
          enum:
          - ios
          - android
          title: Platform
        project_id:
          type: string
          maxLength: 100
          minLength: 1
          title: Project Id
        app_version:
          anyOf:
          - type: string
            maxLength: 40
          - type: 'null'
          title: App Version
      type: object
      required:
      - expo_push_token
      - platform
      - project_id
      title: PushTokenRegistration
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer