Upload asset

POST /api/user-assets

Upload a user asset.

multipart/form-data

Body

  • The file asset to upload.

Responses

  • 200 application/json

    An object containing the uploaded asset metadata.

    Hide response attribute Show response attribute object
  • Unauthorized

  • Forbidden

POST /api/user-assets
curl \
 --request POST https://[tenant_id].logto.app/api/user-assets \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: multipart/form-data"
Response examples (200)
{
  "url": "string"
}