---
title: "Link asset to program"
method: POST
path: "/v1/programs/{program_id}/assets"
tags: ["Programs"]
---

# Link asset to program

`POST /v1/programs/{program_id}/assets`

## Request

- Base URL: `https://api.scrip.dev`
- URL: `https://api.scrip.dev/v1/programs/{program_id}/assets`
- Auth: HTTP bearer

Link an existing asset to a program.

## Path parameters

- `program_id` string, uuid, required

## Headers

- `Idempotency-Key` string

## Request body

- LinkAssetRequest: Links an existing asset to a program.
  - `asset_id` string, uuid, required: The asset to link to the program. It must exist in your organization.

## Response `200`

Asset linked

- AssetResponse: An asset: the currency or points that participants earn and spend.
  - `created_at` string, date-time: When the asset was created
  - `deleted_at` string, date-time: Set when the asset is archived
  - `id` string, uuid: The id of the asset. Use it in `asset_id` fields and paths.
  - `inventory_mode` string: How balances are tracked
  - `issuance_policy` string: How value is issued
  - `max_transaction_amount` string: Optional per-transaction ceiling. Null means no limit
  - `name` string: The name people see for the asset, such as `Points`.
  - `program_ids` string[]: Programs this asset is linked to
  - `scale` integer: Decimal precision
  - `status` 'ACTIVE' | 'ARCHIVED': Whether the asset is in use (ACTIVE) or retired (ARCHIVED).
  - `symbol` string: Short code for this asset
  - `updated_at` string, date-time: When the asset was last modified

## Other responses

- `400`: Validation failed (code: validation_error | invalid_json)
- `401`: The API key is missing or not valid. See [Authentication](https://docs.scrip.dev/authentication).
- `403`: The caller is not allowed to do this.
- `404`: Resource not found (code: asset_not_found | program_not_found)
- `409`: Asset already linked or archived (code: asset_already_linked)
- `422`: Request cannot be processed (code: asset_archived)
- `429`: Too many requests. Wait the number of seconds in the `Retry-After` header, then retry. See [Limits and durations](https://docs.scrip.dev/limits#rate-limits).
- `500`: Something failed on Scrip's side. Retry the request, and quote `request_id` if it keeps failing. [Errors](https://docs.scrip.dev/errors) lists every code, and the [API introduction](https://docs.scrip.dev/api-reference/introduction) describes the error format.

---

[API](https://skmtc.dev/scrip/apis/scrip-api.md) · [All operations](https://skmtc.dev/scrip/apis/scrip-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scrip/apis/scrip-api/revisions/c52d35da8d97?raw)
