SHIP AI Environments API

The environments API from SHIP AI — 2 operation(s) for environments.

GitHub OpenAPI

Operations 3

GET /environments List preview environments for the caller's accessible projects #
GET /environments/{environmentId} Environment detail #
DELETE /environments/{environmentId} Request teardown of a preview environment #

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-environments-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-environments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SHIP Environments 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: Environments
paths:
  /environments:
    get:
      x-audience: public
      tags:
      - Environments
      summary: List preview environments for the caller's accessible projects
      parameters:
      - schema:
          type: string
        required: false
        name: issueId
        in: query
      - schema:
          type: string
        required: false
        name: projectId
        in: query
      - schema:
          $ref: '#/components/schemas/PreviewEnvironmentStatus'
        required: false
        name: status
        in: query
      - schema:
          type: integer
          minimum: 1
          maximum: 500
          default: 200
        required: false
        name: limit
        in: query
      responses:
        '200':
          description: Environments
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListEnvironmentsResponse'
        '401':
          description: Unauthenticated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getEnvironments
      x-operation-id-source: derived
  /environments/{environmentId}:
    get:
      x-audience: public
      tags:
      - Environments
      summary: Environment detail
      parameters:
      - schema:
          type: string
          minLength: 1
        required: true
        name: environmentId
        in: path
      responses:
        '200':
          description: Detail
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvironmentDetailResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getEnvironmentsByEnvironmentId
      x-operation-id-source: derived
    delete:
      x-audience: public
      tags:
      - Environments
      summary: Request teardown of a preview environment
      parameters:
      - schema:
          type: string
          minLength: 1
        required: true
        name: environmentId
        in: path
      responses:
        '200':
          description: Teardown requested
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DestroyEnvironmentResponse'
        '403':
          description: Role insufficient
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: deleteEnvironmentsByEnvironmentId
      x-operation-id-source: derived
components:
  schemas:
    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
    PreviewEnvironmentStatus:
      type: string
      enum:
      - provisioning
      - active
      - destroying
      - destroyed
      - failed
    ListEnvironmentsResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Environment'
        nextCursor:
          type:
          - string
          - 'null'
      required:
      - data
      - nextCursor
    DestroyEnvironmentResponse:
      type: object
      properties:
        ok:
          type: boolean
        environmentId:
          type: string
      required:
      - ok
      - environmentId
    Environment:
      type: object
      properties:
        environmentId:
          type: string
        projectId:
          type: string
        issueId:
          type: string
        prNumber:
          type: integer
        workerName:
          type:
          - string
          - 'null'
        status:
          $ref: '#/components/schemas/PreviewEnvironmentStatus'
        createdAt:
          type: integer
        expiresAt:
          type:
          - integer
          - 'null'
        destroyedAt:
          type:
          - integer
          - 'null'
      required:
      - environmentId
      - projectId
      - issueId
      - prNumber
      - workerName
      - status
      - createdAt
      - expiresAt
      - destroyedAt
    EnvironmentDetailResponse:
      type: object
      properties:
        environment:
          $ref: '#/components/schemas/Environment'
      required:
      - environment
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API token (pat_ or mcp_ prefix)