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

# Get Fleet Logs

Fetch the CSV-formatted metadata for every Log the target Fleet has made

### Response Body Reference

The response body is CSV-formatted text. Below is a reference for available columns.

| Column           | Description                                                          |
| :--------------- | :------------------------------------------------------------------- |
| Fleet ID         | The UUID of the associated Fleet                                     |
| Fleet Name       | The name of the associated Fleet                                     |
| Fleet Version    | The version number of the associated Fleet                           |
| Fleet Log ID     | The UUID of the Fleet Run log                                        |
| Status           | The status the Fleet Run completed in                                |
| Start Time       | The time the Fleet Run started                                       |
| End Time         | The time the Fleet Run ended                                         |
| Duration         | The length of time the Fleet Run ran for                             |
| Billable Runtime | The length of time the Fleet Run ran the customer will be billed for |
| Vessels Count    | The number of Vessels in the associated Fleet                        |
| Trigger          | The method the Fleet Run was started by                              |

# 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}/projects/{project_id}/fleets/{fleet_id}/fleetruns": {
      "get": {
        "summary": "Get Fleet Logs",
        "description": "Fetch the CSV-formatted metadata for every Log the target Fleet has made",
        "operationId": "get-fleet-logs",
        "parameters": [
          {
            "name": "org_id",
            "in": "path",
            "description": "UUID of the Organization the Fleet Runs are in",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "project_id",
            "in": "path",
            "description": "UUID of the Project the Fleet is in",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "fleet_id",
            "in": "path",
            "description": "UUID of the Fleet whose Runs you want to get",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "days",
            "in": "query",
            "description": "Override days of Voyages data returned with any value less than the log retention quota for the Organization",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "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": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": "Fleet ID,Fleet Name,Fleet Version,Fleet Log ID,Status,Start Time,End Time,Duration,Billable Runtime,Vessels Count,Trigger\n201298b2-8f78-4acc-91bf-3710670918b2,delightful_trawler,1,f6b30494-a2bb-4c55-85d2-e4391a6641c2,Success,2023-12-08T18:54:41Z,2023-12-08T18:54:45Z,3.805067,3.805067,1,OnDemand"
                  }
                }
              }
            }
          },
          "500": {
            "description": "500",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"error_type\": \"/fleet_runs.get\",\n    \"error\": {\n        \"type\": \"/fleet_runs.get\",\n        \"title\": \"fleet_runs: domain: entity does not exist\",\n        \"status\": 500\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error_type": {
                      "type": "string",
                      "example": "/fleet_runs.get"
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "/fleet_runs.get"
                        },
                        "title": {
                          "type": "string",
                          "example": "fleet_runs: domain: entity does not exist"
                        },
                        "status": {
                          "type": "integer",
                          "example": 500,
                          "default": 0
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "6572604cfc3f31000fe88156:657367a587a6b2001ccbcbae"
}
```