Socials

Uploads an image or video from a public URL for use in posts. Any other file type is refused with 422.

post/socials/upload

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

object required
url, string required

Response

Uploaded media

SocialUpload required
object, string required
id, string required
url, string required
filename, string nullable required
content_type, string nullable required
size_bytes, integer nullable required
thumbnail_url, string nullable required
created_at, string date-time required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    3 more changes in this revision