RelayAPI

Confirm a presigned upload completed

After uploading a file to the presigned URL, call this endpoint to mark the media as ready.

POST
/v1/media/confirm
AuthorizationBearer <token>

API key (rlay_live_* or rlay_test_*)

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

storage_key*string

The storage key from the presign response URL

Response Body

application/json

application/json

application/json

curl -X POST "https://api.relayapi.dev/v1/media/confirm" \  -H "Content-Type: application/json" \  -d '{    "storage_key": "string"  }'
{
  "id": "string",
  "url": "http://example.com",
  "filename": "string",
  "mime_type": "string",
  "size": 0,
  "width": 0,
  "height": 0,
  "duration": 0,
  "created_at": "2019-08-24T14:15:22Z"
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}

Found something wrong? Help us improve this page.

Submit an Issue
Requires a GitHub account.View repo