---
title: "Resolve a selected stock asset and record provider attribution events"
method: POST
path: "/stock-media/selections"
tags: ["Stock Media"]
---

# Resolve a selected stock asset and record provider attribution events

`POST /stock-media/selections`

## Request

- Base URL: `https://app.openpo.st/api/v1`
- URL: `https://app.openpo.st/api/v1/stock-media/selections`
- Auth: none required

## Request body

- SelectStockMediaInputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `external_id` string, required
  - `provider` 'pexels' | 'unsplash' | 'pixabay', required

## Response `200`

OK

- ResolvedAsset
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `attribution_text` string, required
  - `creator_name` string, required
  - `creator_url` string, required
  - `download_url` string, required
  - `duration_seconds` integer
  - `external_id` string, required
  - `height` integer, required
  - `kind` string, required
  - `license_name` string, required
  - `license_url` string, required
  - `mime_type` string, required
  - `preview_url` string
  - `provider` string, required
  - `provider_url` string, required
  - `source_url` string, required
  - `thumbnail_url` string, required
  - `title` string, required
  - `width` integer, required

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `422`: Unprocessable Entity
- `429`: Too Many Requests
- `500`: Internal Server Error
- `502`: Bad Gateway
- `503`: Service Unavailable

---

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