GEThttps://api.vidrys.com/v1/projects/{project_id}/content-assets/{asset_id}/draft - Plan
- Grow and above
- Key
- read
- Rate cost
- 1 unit
Returns not_found until a draft has been generated — start one with Generate a draft.
Authorization
Sent as a header on every request.
Authorizationstringrequired
A Vidrys API key, sent as Bearer vidrys_sk_…. A read key is enough. See Authentication.
Response · 200
application/json
asset_idstring
The opportunity.
versioninteger
Which generation produced it.
contentstring
The draft itself.
Errors
| 404 not_found | The project or item doesn't exist in this workspace. A project from another workspace also returns 404, never 403. |
| 401 unauthorized | No key was sent, or the key is unknown, revoked or expired, or the member who created it has left the workspace or been deactivated. |
| 402 plan_required | The workspace's plan doesn't include API access. It's included on Grow, Scale and Custom. |
| 403 workspace_not_approved | The workspace is still waiting for approval, or wasn't approved. |
| 429 rate_limited | Too many requests this minute. Wait for the number of seconds in the `Retry-After` header, then retry. |
Every code, and what to retry, is in Errors.