Nirmos
Media

Get Media

Get Media — Nirmos Control Plane REST API.

GET
/v1/media/{id}

Authorization

better-auth.session_token<token>

Production cookie uses __Secure- prefix.

In: cookie

Path Parameters

id*string
Length1 <= length <= 128

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/media/string"
{  "data": {    "id": "string",    "originalFilename": "string",    "filename": "string",    "mimeType": "string",    "width": 0,    "height": 0,    "sizeBytes": 0,    "checksum": "string",    "sourceType": "UPLOAD",    "status": "PENDING",    "metadata": "string",    "createdAt": "string",    "updatedAt": "string",    "uploadedAt": "string",    "verifiedAt": "string"  },  "requestId": "string"}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}