Skip to main content
POST
/
v1
/
files
Request a signed URL for file upload
curl --request POST \
  --url https://api.turbofiles.io/v1/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "files",
    "attributes": {
      "format": "image/png",
      "size": 504233
    }
  }
}'
{
  "jsonapi": {
    "version": "1.1"
  },
  "data": {
    "type": "files",
    "id": "8fhd83jpk",
    "attributes": {
      "format": "image/png",
      "size": 504233,
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    },
    "links": {
      "self": "<string>",
      "upload": "<string>",
      "download": "<string>"
    }
  },
  "links": {
    "self": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Authentication token must be provided in the Authorization header using the Bearer scheme. Example: Authorization: Bearer your-api-key-or-token

Body

application/vnd.api+json
data
object
required

Response

201 - application/vnd.api+json

Created successfully

jsonapi
object
required
data
object
required