SHIP AI Organizations API

The organizations API from SHIP AI — 6 operation(s) for organizations.

GitHub OpenAPI

Operations 9

POST /organizations Create an org (cookieAuth, makes caller owner) #
GET /organizations List the calling user's orgs #
PATCH /organizations/{orgId} Rename an org (cookieAuth, owner/admin only) #
GET /organizations/{orgId} Fetch an org (membership required) #
GET /organizations/slug-availability Check whether an organization slug is free #
GET /organizations/slug-preview Preview the slug the API would derive from an org name (onboarding helper) #
GET /organizations/{orgId}/memberships List memberships in an org #
POST /organizations/{orgId}/memberships Add a member to an org (owner|admin) #
POST /organizations/{orgId}/close Close the workspace: archived, and each paid pack's unused credits refunded… #

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-organizations-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-organizations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SHIP Organizations 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: Organizations
paths:
  /organizations:
    post:
      x-audience: public
      tags:
      - Organizations
      summary: Create an org (cookieAuth, makes caller owner)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateOrganizationRequest'
      responses:
        '200':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Organization'
        '401':
          description: Unauthenticated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Slug already taken
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postOrganizations
      x-operation-id-source: derived
    get:
      x-audience: public
      tags:
      - Organizations
      summary: List the calling user's orgs
      responses:
        '200':
          description: Orgs
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListOrganizationsResponse'
        '401':
          description: Unauthenticated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getOrganizations
      x-operation-id-source: derived
  /organizations/{orgId}:
    patch:
      x-audience: public
      tags:
      - Organizations
      summary: Rename an org (cookieAuth, owner/admin only)
      parameters:
      - schema:
          type: string
          minLength: 1
        required: true
        name: orgId
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateOrganizationRequest'
      responses:
        '200':
          description: Updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Organization'
        '401':
          description: Unauthenticated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Not permitted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such org
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Slug already taken
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: patchOrganizationsByOrgId
      x-operation-id-source: derived
    get:
      x-audience: public
      tags:
      - Organizations
      summary: Fetch an org (membership required)
      parameters:
      - schema:
          type: string
          minLength: 1
        required: true
        name: orgId
        in: path
      responses:
        '200':
          description: Org
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Organization'
        '404':
          description: Not found (or no membership)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getOrganizationsByOrgId
      x-operation-id-source: derived
  /organizations/slug-availability:
    get:
      x-audience: public
      tags:
      - Organizations
      summary: Check whether an organization slug is free
      description: 'Says whether the slug is free. A taken slug comes with a free variant to offer instead. Pass orgId to rename that organization: its own slug counts as free.'
      parameters:
      - schema:
          type: string
          minLength: 1
          maxLength: 64
          pattern: ^[a-z0-9-]+$
        required: true
        name: slug
        in: query
      - schema:
          type: string
          minLength: 1
        required: false
        name: orgId
        in: query
      responses:
        '200':
          description: Availability
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SlugAvailabilityResponse'
        '400':
          description: Not a valid slug
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthenticated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getOrganizationsSlugAvailability
      x-operation-id-source: derived
  /organizations/slug-preview:
    get:
      x-audience: public
      tags:
      - Organizations
      summary: Preview the slug the API would derive from an org name (onboarding helper)
      parameters:
      - schema:
          type: string
          minLength: 1
          maxLength: 120
        required: true
        name: name
        in: query
      responses:
        '200':
          description: Derived slug
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SlugPreviewResponse'
        '401':
          description: Unauthenticated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getOrganizationsSlugPreview
      x-operation-id-source: derived
  /organizations/{orgId}/memberships:
    get:
      x-audience: public
      tags:
      - Organizations
      summary: List memberships in an org
      parameters:
      - schema:
          type: string
          minLength: 1
        required: true
        name: orgId
        in: path
      responses:
        '200':
          description: Members
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListMembershipsResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getOrganizationsByOrgIdMemberships
      x-operation-id-source: derived
    post:
      x-audience: public
      tags:
      - Organizations
      summary: Add a member to an org (owner|admin)
      parameters:
      - schema:
          type: string
          minLength: 1
        required: true
        name: orgId
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMembershipRequest'
      responses:
        '200':
          description: Membership created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Membership'
        '403':
          description: Role insufficient
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Org not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postOrganizationsByOrgIdMemberships
      x-operation-id-source: derived
  /organizations/{orgId}/close:
    post:
      x-audience: public
      tags:
      - Organizations
      summary: 'Close the workspace: archived, and each paid pack''s unused credits refunded…'
      parameters:
      - schema:
          type: string
          minLength: 1
        required: true
        name: orgId
        in: path
      responses:
        '200':
          description: Closed (or the first closure, retried)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgClosure'
        '403':
          description: Not an owner (owner_required)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such org for this caller
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postOrganizationsByOrgIdClose
      x-operation-id-source: derived
components:
  schemas:
    ClosureSettlement:
      type: object
      properties:
        orderId:
          type: string
        packCredits:
          type: integer
          exclusiveMinimum: 0
        outcome:
          type: string
          enum:
          - withdrawn
          - refunded
          - forfeited
        credits:
          type: integer
          minimum: 0
        refundUsd:
          type: number
          minimum: 0
        refundStatus:
          anyOf:
          - type: string
            enum:
            - pending
            - succeeded
            - failed
          - type: 'null'
          - type: 'null'
      required:
      - orderId
      - packCredits
      - outcome
      - credits
      - refundUsd
      - refundStatus
    Organization:
      type: object
      properties:
        id:
          type: string
          example: org_1a2b3c4d5e6f7a8b
        name:
          type: string
          example: Alex's Startup
        slug:
          type: string
          example: alexs-startup
        createdByUserId:
          type: string
        createdAt:
          type: integer
        namePending:
          type: boolean
      required:
      - id
      - name
      - slug
      - createdByUserId
      - createdAt
      - namePending
    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
    UpdateOrganizationRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 120
        slug:
          type: string
          minLength: 1
          maxLength: 64
          pattern: ^[a-z0-9-]+$
    OrgRole:
      type:
      - string
      - 'null'
      enum:
      - owner
      - admin
      - member
      example: admin
    SlugAvailabilityResponse:
      type: object
      properties:
        slug:
          type: string
          example: first-run-labs
        available:
          type: boolean
        suggestion:
          type:
          - string
          - 'null'
          example: first-run-labs-2
      required:
      - slug
      - available
      - suggestion
    OrgClosure:
      type: object
      properties:
        orgId:
          type: string
        closedAt:
          type: integer
        basis:
          type: string
          enum:
          - owner
          - ship
        settlements:
          type: array
          items:
            $ref: '#/components/schemas/ClosureSettlement'
      required:
      - orgId
      - closedAt
      - basis
      - settlements
    ListMembershipsResponse:
      type: object
      properties:
        memberships:
          type: array
          items:
            $ref: '#/components/schemas/Membership'
      required:
      - memberships
    SlugPreviewResponse:
      type: object
      properties:
        slug:
          type: string
          example: alexs-startup
      required:
      - slug
    CreateOrganizationRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 120
        slug:
          type: string
          minLength: 1
          maxLength: 64
          pattern: ^[a-z0-9-]+$
      required:
      - name
    ListOrganizationsResponse:
      type: object
      properties:
        orgs:
          type: array
          items:
            $ref: '#/components/schemas/Organization'
      required:
      - orgs
    Membership:
      type: object
      properties:
        orgId:
          type: string
        userId:
          type: string
        role:
          allOf:
          - $ref: '#/components/schemas/OrgRole'
          - type: string
        createdAt:
          type: integer
      required:
      - orgId
      - userId
      - role
      - createdAt
    CreateMembershipRequest:
      type: object
      properties:
        userId:
          type: string
          minLength: 1
        role:
          allOf:
          - $ref: '#/components/schemas/OrgRole'
          - type: string
      required:
      - userId
      - role
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API token (pat_ or mcp_ prefix)