Media
List the media library
GET
Ready files, newest first, with how many posts use each.
Requires the read scope.
bearerheader
AuthorizationBearer <token>An API key (tb_live_...) from the dashboard, or an OAuth access token.
type?stringValue in
"image""video"limit?integerRange
1 <= value <= 100Default
40cursor?stringLength
length <= 200Tebar-Profile?stringLimits an owner key to one profile (id or external_id). Unknown: 404 profile_not_found.
A page of media.
application/json- response
data*array<>next_cursor*string|nullcurl -X GET 'https://api.tebar.app/v1/media'Example Response
{
"data": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"profile_id": "bfcb6779-b1f9-41fc-92d7-88f8bc1d12e8",
"type": "image",
"mime_type": "string",
"size_bytes": 0,
"width": 0,
"height": 0,
"duration_ms": 0,
"frame_rate": 0,
"status": "pending",
"public_url": "string",
"poster_url": "string",
"alt_text": "string",
"keep": true,
"created_at": "2019-08-24T14:15:22Z",
"used_count": 0
}
],
"next_cursor": "string"
}Upload a file from a URL POST
Tebar downloads the file (public http/https hosts on port 80 or 443 only). Requires the write scope.
Start a presigned upload POST
PUT the file to upload_url with exactly the Content-Type and Content-Length in upload_headers (both are signed; a mismatch gets 403 from storage), then call complete. Requires the write scope.