Skip to content

Get a Signed Response Object

Terminal window
https://mapi.storyblok.com/v1/spaces/:space_id/assets/

Returns a signed response to be used to upload the asset. See upload and replace assets for further information.

  • :space_id required number

    Numeric ID of a space

  • filename string

    Filename of the asset. Required.

  • id number

    Numeric ID of the existing asset. Optional.

  • asset_folder_id number

    ID of the target asset folder. Optional.

  • size string

    Specifies the asset dimensions in the format <width>X<height> (for example, 300X400). Optional.

  • validate_upload number

    Determines whether the upload has to be validated. Disabled by default. Optional.

  • Signed response object

    A signed response object to be used for uploading assets.

curl "https://mapi.storyblok.com/v1/spaces/123123/assets/" \
-X POST \
-H "Authorization: YOUR_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"asset_folder_id\":638352,\"filename\":\"123.jpg\",\"id\":89293614204583,\"size\":\"\",\"validate_upload\":1}"