{
	"info": {
		"name": "Fleet Support API",
		"description": "Requests for the Fleet Support API v1.\n\nBefore you start, set the `apiKey` collection variable to your API key (it begins with `fsk_`). Every endpoint URL ends with a trailing slash.\n\nFull documentation: https://api.fleetsupportops.co.uk/docs/",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"auth": {
		"type": "bearer",
		"bearer": [
			{ "key": "token", "value": "{{apiKey}}", "type": "string" }
		]
	},
	"variable": [
		{ "key": "baseUrl", "value": "https://api.fleetsupportops.co.uk/v1", "type": "string" },
		{ "key": "apiKey", "value": "fsk_your_api_key", "type": "string" }
	],
	"item": [
		{
			"name": "Owners",
			"item": [
				{
					"name": "List owners",
					"request": {
						"method": "GET",
						"description": "Returns the IDs of all owners your API key has access to.",
						"url": {
							"raw": "{{baseUrl}}/owners/",
							"host": ["{{baseUrl}}"],
							"path": ["owners", ""]
						}
					}
				}
			]
		},
		{
			"name": "Jobs",
			"item": [
				{
					"name": "List jobs",
					"request": {
						"method": "GET",
						"description": "Returns a page of jobs across the owners your key can access, ordered by `job_id`. Enable the optional parameters as needed.",
						"url": {
							"raw": "{{baseUrl}}/jobs/?limit=10",
							"host": ["{{baseUrl}}"],
							"path": ["jobs", ""],
							"query": [
								{ "key": "limit", "value": "10", "description": "Number of jobs to return, 1 to 100. Defaults to 10." },
								{ "key": "owner", "value": "", "description": "Comma-separated owner IDs to restrict results to.", "disabled": true },
								{ "key": "starting_after", "value": "", "description": "Return jobs with a job_id after this one.", "disabled": true },
								{ "key": "ending_before", "value": "", "description": "Return jobs with a job_id before this one. Can't be combined with starting_after.", "disabled": true },
								{ "key": "last_update[gte]", "value": "2026-10-01", "description": "Jobs updated on or after this date.", "disabled": true },
								{ "key": "last_update[gt]", "value": "", "description": "Jobs updated after this date.", "disabled": true },
								{ "key": "last_update[lte]", "value": "", "description": "Jobs updated on or before this date.", "disabled": true },
								{ "key": "last_update[lt]", "value": "", "description": "Jobs updated before this date.", "disabled": true }
							]
						}
					}
				},
				{
					"name": "Retrieve a job",
					"request": {
						"method": "GET",
						"description": "Retrieves a single job, including its full `job_detail` update log.",
						"url": {
							"raw": "{{baseUrl}}/jobs/:id/",
							"host": ["{{baseUrl}}"],
							"path": ["jobs", ":id", ""],
							"variable": [
								{ "key": "id", "value": "", "description": "The job_id of the job to retrieve." }
							]
						}
					}
				}
			]
		},
		{
			"name": "Utilities",
			"item": [
				{
					"name": "Ping",
					"request": {
						"method": "GET",
						"auth": { "type": "noauth" },
						"description": "A lightweight health check. No authentication required.",
						"url": {
							"raw": "{{baseUrl}}/ping/",
							"host": ["{{baseUrl}}"],
							"path": ["ping", ""]
						}
					}
				}
			]
		}
	]
}
