drafts

A pre-signed URL to upload an image or sound clip.

PUT the file to uploadUrl with the returned headers (the URL is the credential, for 15 minutes), then use publicUrl in the question. Images are checked and their metadata stripped before heads see them.

post/v1/uploads

Request

  • Base URL: https://api.50heads.com
  • URL: https://api.50heads.com/v1/uploads
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://auth.50heads.com/authorize, token URL https://auth.50heads.com/token; client credentials, token URL https://auth.50heads.com/token, scopes: questions:write)

Request body

kind'image' | 'audio' required
contentTypestring required
bytesinteger required

Response

OK

uploadUrlstring required
publicUrlstring required
headersobject required

Changes

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