Create signed document download link
Mints a short-lived, header-free URL for the completed (signed) PDF, for
destinations that fetch a file themselves instead of being handed bytes:
an external attachment store follows the URL from its own servers, so the
ordinary download endpoint, which needs this caller's bearer token, is
unreachable from there.
POST because it creates a credential: the response is a live URL and must
never sit in a cache. Returns 404 if the request does not exist or belongs
to a different client, and 409 if it has not reached COMPLETED status yet.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Get a short-lived URL for a completed contract's signed PDF that can be opened without an Authorization header. Use it when the file has to be fetched by another system from its own servers, for example an attachment field in a spreadsheet, CRM or no-code tool that only accepts a URL. If your own code downloads the file, use Download Contract Request Document instead.
Authentication & access
- Requires a client API token:
Authorization: Bearer <token>. - API credentials need the
contracts.requests.readpermission. Dashboard users need the OWNER, OPERATIONS, or DEVELOPER role, or a custom role that includes this permission. - Contract signing must be enabled for the client. If it is disabled the request returns
403.
Path parameters
| Parameter | Description |
|---|---|
request_id | ID of the completed contract request. Must belong to your client. |
Response
200
{
"url": "https://api.urbanpayx.com/api/v1/contracts/files/eyJhbGciOi...",
"filename": "Investment agreement - signed.pdf",
"expires_at": "2026-10-28T10:05:00Z"
}| Field | Description |
|---|---|
url | Download URL. Works without any header until expires_at. |
filename | Name the file downloads as |
expires_at | When the URL stops working, 5 minutes after it was created |
Security notes
- Anyone holding the URL can download the document until it expires. Hand it straight to the system that fetches it; do not log it, store it or show it to end users.
- Create a new link each time you need one. Each creation is recorded in your activity log.
- This is a
POSTbecause it creates a credential; the response must not be cached.
Error responses
| Status | When |
|---|---|
403 | Contract signing is disabled for the client |
404 | No contract request with this request_id exists under your client |
409 | The contract is not completed yet |
Standard 401 (authentication), 403 (insufficient permission or role), and 429 (rate limit) responses apply to every endpoint and are documented in the Error reference.