> ## Documentation Index
> Fetch the complete documentation index at: https://docs.transparencyhubnetwork.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Download a Drive File

> Get a short-lived link to the file behind a Drive item, a meeting recording or a minutes document.

Returns a short-lived signed link to the file itself. Use it for anything you found through the API:

* a file from **List Drive Items** (`GET /v1/drive/items`) — pass its `id`
* a **meeting recording** — pass the `drive_item_id` from **List Meeting Recordings** (`GET /v1/meetings/{meeting_id}/recordings`)
* a **minutes document** — pass the `drive_item_id` from **List Minutes** (`GET /v1/minutes`)

The link expires after a few minutes; fetch a new one when you need it again. The permissions of the admin who created the key apply: a file they cannot see comes back as `404`, and a file shared with them view-only comes back as `403`. Every download is recorded in the chapter's activity log.

**Required scope:** `drive:download` (separate from `drive:read`, so a key can browse names without being able to fetch contents)

```json 200 theme={null}
{
  "status": "success",
  "data": {
    "url": "https://transparencyhubstore.blob.core.windows.net/14-407/...&sig=...",
    "expires_in_minutes": 15,
    "file_name": "AGM agenda.pdf"
  }
}
```


## OpenAPI

````yaml GET /v1/drive/items/{item_id}/download
openapi: 3.0.3
info:
  title: Transparency Hub Public API
  version: 1.7.0
  description: Key-authenticated REST API for association and chapter integrations.
servers:
  - url: https://api.transparencyhubnetwork.ai/api
  - url: https://testapi.transparencyhubnetwork.ai/api
    description: Test
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /v1/drive/items/{item_id}/download:
    get:
      summary: Download a Drive file
      description: >-
        Returns a short-lived signed link to the file. Requires scope
        `drive:download`. The key owner's Drive permissions apply: a file they
        cannot see is `404`, and a view-only grant is `403`. Every download is
        written to the activity log. Meeting recordings and minutes expose a
        `drive_item_id` you can pass here.
      parameters:
        - name: item_id
          in: path
          required: true
          schema:
            type: integer
        - $ref: '#/components/parameters/chapterId'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  data:
                    $ref: '#/components/schemas/DownloadLink'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    chapterId:
      name: chapter_id
      in: query
      schema:
        type: integer
      description: >-
        Required for association-wide keys; must match the key's chapter for
        chapter-bound keys.
  schemas:
    DownloadLink:
      type: object
      properties:
        url:
          type: string
          description: Short-lived signed URL.
        expires_in_minutes:
          type: integer
        file_name:
          type: string
    Error:
      type: object
      required:
        - status
        - code
        - message
      properties:
        status:
          type: string
          enum:
            - error
        code:
          type: string
        message:
          type: string
        details:
          type: object
  responses:
    ValidationError:
      description: validation_error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: insufficient_scope or chapter_forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: not_found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: rate_limited; see Retry-After
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
    BearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.