Errors

Code Description
401 Unauthorized
500 Internal Server Error
422 Missing parameters

Examples

GET /api/v2/assets/yo2uT3wBW4fR4Me2gHzn
200
{
  "asset": {
    "id": "yo2uT3wBW4fR4Me2gHzn",
    "external_id": null,
    "project_id": null,
    "parent_asset_id": null,
    "owner": "support@mediapocket.io",
    "description": "Sample asset description.",
    "title": "Sample Asset",
    "category": "",
    "tags": [
      "Test",
      "Tag"
    ],
    "media_type": "placeholder",
    "modification_date": "2021-10-05T09:00:09Z",
    "created_date": "2021-10-05T09:00:08Z",
    "status": "open",
    "original_filename": null,
    "deleted": false
  }
}
GET /api/v2/assets/not-found-id
404
{
  "error": "asset not found"
}
GET /api/v2/assets/0I2uT3wBW4fR4Me2onyI
404
{
  "error": "asset not found"
}

Params

Param name Description
asset_id
required

Asset ID

Validations:

  • Must be a String

Headers

Header name Description
Content-Type
required
application/json
X-API-KEY
required
YOUR_API_KEY