uploaded_media

Step 2 of the presigned upload flow: verifies the object POSTed to the upload_url, sniffs its real content type, and activates it — after this it appears in the library and is publicly servable.

post/api/projects/{project_id}/uploaded_media/{id}/complete_upload/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/uploaded_media/{id}/complete_upload/
  • Auth: HTTP bearer

Path parameters

idstring uuid required

A UUID string identifying this uploaded media.

project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Response

idstring uuid required
namestring required

The file's original name.

purposestring nullable required
content_typestring nullable required
size_bytesinteger nullable required
urlstring uri required

Permanent, public URL of the image. For emails, put this in an image block's values.src.url.

created_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.