---
agentTools:
  projectIndex: https://shipyard.readme.io/llms.txt
---

# Get Fleets

List the Fleets available in the organization whose ID you provide

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Shipyard API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.app.shipyardapp.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Shipyard-API-Key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/orgs/{org_id}/fleets": {
      "get": {
        "summary": "Get Fleets",
        "description": "List the Fleets available in the organization whose ID you provide",
        "operationId": "get-fleets",
        "parameters": [
          {
            "name": "org_id",
            "in": "path",
            "description": "UUID of the organization you want to list Fleets for",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "Optionally include \"application/json\" and this endpoint will return JSON-formatted data instead of YAML",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"data_kind\": \"fleets\",\n    \"data\": [\n        {\n            \"org_id\": \"100a2114-8ed4-4ee3-a95b-70b170b6c1f9\",\n            \"project_id\": \"d786dd2a-0fba-486b-9c14-a95ead70f9cc\",\n          \t\"project_name\": \"Test Project\",\n            \"id\": \"b18890ff-f29b-4e79-a829-a60f47e4c6f4\",\n            \"name\": \"Test Fleet\",\n            \"vessel_ids\": [\n                \"d89afc66-5356-45fe-8ea2-afa14a2065de\",\n                \"a6c41a1d-2df2-4c17-9af1-28d787fedbd7\"\n            ],\n            \"created_at\": \"2022-02-27T22:50:44.611966Z\",\n            \"updated_at\": \"2023-11-05T01:21:52.636745Z\",\n            \"created_by\": {\n                \"id\": \"e082d09a-0ed6-41d9-8811-342a61cf30b8\",\n                \"email\": \"user@example.com\"\n            },\n            \"updated_by\": {\n                \"id\": \"e082d09a-0ed6-41d9-8811-342a61cf30b8\"\",\n                \"email\": \"user@example.com\"\n            },\n            \"schedules\": [\n                {\n                    \"id\": \"964d587c-3912-40e6-92a9-6ca51d08e34c\",\n                    \"weekday\": 1,\n                    \"day_time\": 32400,\n                    \"month_day\": null,\n                    \"hour_time\": null\n                }\n            ],\n            \"vessel_dag\": {\n                \"vertices\": [\n                    \"d89afc66-5356-45fe-8ea2-afa14a2065de\",\n                    \"a6c41a1d-2df2-4c17-9af1-28d787fedbd7\"\n                ],\n                \"versions\": [\n                    2,\n                    5\n                ],\n                \"edges\": [\n                    {\n                        \"from_id\": \"d89afc66-5356-45fe-8ea2-afa14a2065de\",\n                        \"to_id\": \"a6c41a1d-2df2-4c17-9af1-28d787fedbd7\",\n                        \"extra\": {\n                            \"exit_code_ranges\": [\n                                [\n                                    0,\n                                    0\n                                ]\n                            ]\n                        }\n                    }\n                ]\n            },\n            \"notification_emails\": [\n                \"user@example.com\"\n            ],\n            \"notify_on_any_error\": true,\n            \"notify_on_completed_on_demand_run\": false,\n            \"version_number\": 5\n        },\n      ]\n}"
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"error_type\": \"/api\",\n    \"error\": {\n        \"type\": \"/api\",\n        \"title\": \"api: domain: entity does not exist\",\n        \"status\": 401\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error_type": {
                      "type": "string",
                      "example": "/api"
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "/api"
                        },
                        "title": {
                          "type": "string",
                          "example": "api: domain: entity does not exist"
                        },
                        "status": {
                          "type": "integer",
                          "example": 401,
                          "default": 0
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "6572604cfc3f31000fe88156:657344548f8b83001c6d2dd4"
}
```