Nirmos
Media

Complete Media Upload

Complete Media Upload — Nirmos Control Plane REST API.

POST
/v1/media/uploads/complete

Authorization

better-auth.session_token<token>

Production cookie uses __Secure- prefix.

In: cookie

Request Body

application/json

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/media/uploads/complete" \  -H "Content-Type: application/json" \  -d '{    "assetId": "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"  }}