# listFiles

> Part of the MAP Audio Music API docs. Index of every page: https://map.audio/developers/music-api/llms.txt. OpenAPI document: https://map.audio/developers/music-api/openapi.json.

`GET https://api.map.audio/v1/files`

List files

Render outputs and uploads the account holds, newest first: kind, status, size, SHA-256 and the job that wrote each. Outputs are kept 7 days on the free tier and longer on paid tiers. Free.

Auth: `Authorization: Bearer` with an API key or a map.audio access token. MCP tool: `list_files`.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `limit` | query | integer | no | Files per page. From 1 to 100. Default `25`. |
| `cursor` | query | string | no | The `nextCursor` of the previous page. |

## Example

```sh
curl -sS "https://api.map.audio/v1/files" \
  -H "Authorization: Bearer $MAP_API_KEY" \
  -H "Map-Version: 2026-11-01"
```

### 200: One output

```json
{
  "object": "list",
  "data": [
    {
      "object": "file",
      "id": "file_01M6BPRK0M34NBP2XKJ1RMX1TQ",
      "kind": "output",
      "status": "ready",
      "name": "master.wav",
      "contentType": "audio/wav",
      "bytes": 4608044,
      "sha256": "5a3485b7a3221be5f7ead6ab953cbc198988a7246158215b32bb937acbd3852b",
      "jobId": "job_01M6BPRE186QHP9QPYGDX5NNFP",
      "role": "master",
      "createdAt": "2026-11-01T14:03:41.877Z",
      "expiresAt": "2026-11-08T14:03:41.877Z"
    }
  ],
  "nextCursor": null
}
```

### 400: Invalid request

```json
{
  "error": {
    "type": "invalid_request",
    "code": "invalid_request",
    "message": "The cursor is not one this API issued; pass the nextCursor of the page before, unchanged.",
    "param": "cursor",
    "retryable": false,
    "jobId": null,
    "docUrl": "https://map.audio/developers/music-api/errors#invalid_request",
    "requestId": "9a3f7c2e5b1d8f40-LHR"
  }
}
```

## Responses

- `200`: Files.
- `400`: Invalid request
- `default`: Any other error: `error.code` names it, `error.param` the field at fault, and `error.docUrl` its entry in the error catalogue.

## Errors

- [`invalid_request`](https://map.audio/developers/music-api/errors#invalid_request)
