---
title: "Get a brand document download URL"
description: "A 5-minute signed link to one document's file. `GET /api/v1/sms/brands/{id}/documents/{documentId}/url`"
url: https://www.unitpost.com/docs/sms/get-sms-brands-id-documents-documentid-url
section: "SMS API reference"
updated: 2026-11-11
---
# Get a brand document download URL

`GET /api/v1/sms/brands/{id}/documents/{documentId}/url`

A 5-minute signed link to one document's file. A document that identifies a person (`signatory_id`, `emirates_id`, `signatory_passport`) needs `sms:manage`. A text document has no file (404). Requires the `sms:read` capability.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | — |
| `documentId` | path | string | yes | — |

## Response fields (200)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | — |
| `url` | string | yes | A signed link to the file. It is a credential: fetch it now, don't share or log it. |
| `expires_at` | string | yes | The link stops working at this time (5 minutes). |

## Responses

| Status | Description |
| --- | --- |
| 200 | A signed download URL. |
| 401 | Missing or invalid API key. |
| 403 | Insufficient scope (an identity document needs `sms:manage`). |
| 404 | Document not found, or a text document, or SMS is not enabled. |
| 422 | A query key (this operation takes none). |
| 503 | `engine_unavailable`: file storage isn't configured. |

## Example request

```bash
curl -X GET 'https://www.unitpost.com/api/v1/sms/brands/sms_123/documents/documentId_123/url' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'User-Agent: my-app/1.0'
```

## Example response (200)

```json
{
  "object": "sms_brand_document_url",
  "url": "https://example.com",
  "expires_at": "2026-01-01T00:00:00.000Z"
}
```

## Links

- HTML reference (with Node.js, Python, Ruby, PHP, Laravel, Go, Java, Rust, .NET and CLI examples): https://www.unitpost.com/docs/sms/get-sms-brands-id-documents-documentid-url
- OpenAPI 3.1 (full schemas): https://www.unitpost.com/api/v1/openapi.json
