Skip to main content
POST
Request media upload

Authorizations

Authorization
string
header
required

Access token issued by gtm.service.id. Its access_identity claim carries team_sid, actor_sid and actor_type, and that team scope is authoritative.

Team-SID
string
header
required

Team scope for tokens that do not carry one. Ignored when the token already names a team.

Body

application/json

Request body of request_media_upload.

purpose
enum<string>

What the file is for. post_media (the default): an image or video for create_linkedin_post.

Available options:
post_media
file_name
string

Optional file name, e.g. "q3-chart.png". Characters outside A-Z a-z 0-9 . _ - become "-" in the stored name. Omit when you do not know it yet.

Required string length: 1 - 200
file_type
enum<string>

Optional MIME type, one the purpose takes. Given, it also mints the pre-signed S3 form with this Content-Type bound in. The upload_link needs no type: it reads it from the file.

Available options:
image/png,
image/jpeg,
image/gif,
image/webp,
video/mp4,
video/quicktime,
video/webm

Response

action success envelope.

success
enum<boolean>
required
Available options:
true
operation
enum<string>
required
Available options:
action
action
string
required

kebab-case verb; matches the route segment.

item
any
required
result
object
required
meta
object
required