SHIP AI Admin API

The admin API from SHIP AI — 3 operation(s) for admin.

GitHub OpenAPI

Operations 4

POST /tokens Create a personal access token #
GET /tokens List your API tokens #
DELETE /tokens/{tokenId} Revoke one of your own tokens #
GET /scopes The token scope catalogue #

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/letsship-ai:letsship-ai-admin-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

letsship-ai-admin-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SHIP Admin API
  version: v1
  description: 'The SHIP product API: start and steer missions, and manage the projects, credentials and agents they run with.'
servers:
- url: https://api.letsship.ai/v1
tags:
- name: Admin
paths:
  /tokens:
    post:
      x-audience: public
      tags:
      - Admin
      summary: Create a personal access token
      description: 'Creates a personal access token (pat_) for the signed-in user in their organization. Tokens are created from a signed-in session, never by another token. The requested scopes must exist and must be within the user''s own permissions: a token can never carry more authority than the person who created it, and a request that asks for more is refused with each offending scope named rather than quietly narrowed. The token value is returned once and cannot be retrieved again.'
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTokenRequest'
      responses:
        '201':
          description: Token created. `token` is shown here and never again.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatedToken'
        '403':
          description: Caller is not a human org member, or requested a scope above their grant ceiling.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: The caller belongs to no organization.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postTokens
      x-operation-id-source: derived
    get:
      x-audience: public
      tags:
      - Admin
      summary: List your API tokens
      description: Lists the calling user's own tokens in their org - identity and lifecycle only, never a secret or a hash. Other members' tokens are never listed, regardless of role.
      security:
      - bearerAuth: []
      responses:
        '200':
          description: The caller's tokens.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenList'
        '404':
          description: The caller belongs to no organization.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getTokens
      x-operation-id-source: derived
  /tokens/{tokenId}:
    delete:
      x-audience: public
      tags:
      - Admin
      summary: Revoke one of your own tokens
      description: Revokes a token the calling user owns, and only one they own. A token belonging to another member or another organization is reported as not found, so this route cannot be used to discover token ids. Revocation takes effect immediately.
      security:
      - bearerAuth: []
      parameters:
      - schema:
          type: string
          minLength: 1
          example: tok-9b8e2a3f
        required: true
        name: tokenId
        in: path
      responses:
        '200':
          description: Token revoked (or was already revoked).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevokeTokenResult'
        '404':
          description: No such token owned by the caller.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: deleteTokensByTokenId
      x-operation-id-source: derived
  /scopes:
    get:
      x-audience: public
      tags:
      - Admin
      summary: The token scope catalogue
      description: 'The scope vocabulary grouped for a consent decision: one row per resource, each with ordered access levels naming the exact scopes they grant, and named presets that set a level in each row. Served so the console, the CLI and MCP read the same rows as the enforcement vocabulary, rather than each keeping a copy that can drift from it. Static content — it describes what CAN be granted, not what the caller may grant; pair it with the `grantableScopes` on the caller''s session for that.'
      responses:
        '200':
          description: The catalogue.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScopeCatalog'
      operationId: getScopes
      x-operation-id-source: derived
components:
  schemas:
    ScopeCatalog:
      type: object
      properties:
        groups:
          type: array
          items:
            $ref: '#/components/schemas/ScopeGroup'
        presets:
          type: array
          items:
            $ref: '#/components/schemas/ScopePreset'
          description: Ordered least to most access.
      required:
      - groups
      - presets
    Error:
      type: object
      properties:
        category:
          type: string
          enum:
          - auth
          - rate_limit
          - timeout
          - validation
          - infrastructure
          - agent
          - unknown
          example: validation
        title:
          type: string
          example: Invalid request
        description:
          type: string
          example: The 'projectId' parameter must be a UUID.
        retryable:
          type: boolean
          example: false
        code:
          type: string
          example: credits_exhausted
      required:
      - category
      - title
      - description
      - retryable
    RevokeTokenResult:
      type: object
      properties:
        kind:
          type: string
          enum:
          - revoked
          - already-revoked
          example: revoked
        tokenId:
          type: string
          example: tok-9b8e2a3f
        revokedAt:
          type: integer
          example: 1735689600000
      required:
      - kind
      - tokenId
      - revokedAt
    CreatedToken:
      type: object
      properties:
        id:
          type: string
          example: tok-pat-9b8e2a3f
        name:
          type: string
          example: laptop CLI
        token:
          type: string
          description: The raw bearer token. Shown once, at creation, and never again.
          example: pat_yYqk7Fp2R8x…
        scopes:
          type: array
          items:
            type: string
          example:
          - missions:run
        projectId:
          type:
          - string
          - 'null'
          description: The project this token is bound to, or null when it is org-wide.
          example: null
        expiresAt:
          type: integer
          example: 1743465600000
        createdAt:
          type: integer
          example: 1735689600000
      required:
      - id
      - name
      - token
      - scopes
      - projectId
      - expiresAt
      - createdAt
    CreateTokenRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 100
          description: Human label shown in the token list. Not an identifier.
          example: laptop CLI
        scopes:
          type: array
          items:
            type: string
          maxItems: 31
          default: []
          description: Scopes to delegate to the token. Every entry must be a declared scope AND within the caller's own grant ceiling (a token can never carry authority its minter lacks) - otherwise 403, naming each refused entry. Defaults to none.
          example:
          - missions:run
          - missions:read
        expiresInDays:
          type: integer
          minimum: 1
          maximum: 365
          default: 90
          description: Lifetime in days from now. Tokens always expire; there is no non-expiring option.
          example: 90
        projectId:
          type: string
          minLength: 1
          description: 'Bind the token to ONE project. Missions, runs, environments, artifacts and scheduled tasks then refuse anything outside it - the narrowest useful grant for a third-party integration. The project records themselves stay readable across the org. The project must belong to your org, otherwise 404. Omitted: the token is org-wide.'
          example: proj_f0e324d8a104d8e4ae9426e4
      required:
      - name
    ScopeGroup:
      type: object
      properties:
        id:
          type: string
          example: missions
        title:
          type: string
          example: Missions
        description:
          type: string
          example: Missions, their runs, verdicts and cost.
        levels:
          type: array
          items:
            $ref: '#/components/schemas/ScopeAccessLevel'
          description: Ordered least to most privileged, and cumulative — each level is a superset of the one before it.
        reservedNote:
          type: string
          description: Present when this row's top level grants a scope that currently gates no route.
      required:
      - id
      - title
      - description
      - levels
    TokenList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/TokenSummary'
      required:
      - data
    TokenSummary:
      type: object
      properties:
        id:
          type: string
          example: tok-pat-9b8e2a3f
        name:
          type: string
          example: laptop CLI
        prefix:
          type: string
          example: pat
        scopes:
          type: array
          items:
            type: string
          example:
          - missions:run
        projectId:
          type:
          - string
          - 'null'
          description: The project this token is bound to, or null when it is org-wide.
          example: null
        expiresAt:
          type: integer
          example: 1743465600000
        createdAt:
          type: integer
          example: 1735689600000
        lastUsedAt:
          type:
          - integer
          - 'null'
          example: 1735776000000
        revokedAt:
          type:
          - integer
          - 'null'
          example: null
      required:
      - id
      - name
      - prefix
      - scopes
      - projectId
      - expiresAt
      - createdAt
      - lastUsedAt
      - revokedAt
    ScopeAccessLevel:
      type: object
      properties:
        id:
          type: string
          example: write
        label:
          type: string
          example: Read and write
        scopes:
          type: array
          items:
            type: string
          description: Exactly what this level grants. Empty means no access.
          example:
          - missions:read
          - missions:write
        reserved:
          type: boolean
          description: 'True when this level grants a scope that currently gates no route. Per-level, not per-group: a caller whose ceiling hides the reserved level must not see the group''s note attached to an ordinary one.'
      required:
      - id
      - label
      - scopes
    ScopePreset:
      type: object
      properties:
        id:
          type: string
          example: run
        title:
          type: string
          example: Run missions
        description:
          type: string
          example: Start coding missions, follow them and read their results.
        levels:
          type: object
          additionalProperties:
            type: string
          description: The level id chosen in each group, by group id. A group left out is no access.
          example:
            missions: write
            mission-dispatch: enabled
            projects: read
            artifacts: read
        recommended:
          type: boolean
          description: True for the one preset a surface selects first.
      required:
      - id
      - title
      - description
      - levels
      - recommended
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API token (pat_ or mcp_ prefix)