Sign in

Create asset key

documented

Create an asset signing key for preview-embargoed URLs.

POST /spaces/{space_id}/asset_keysAsset keysno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.contentful.com/spaces/{{$space_id}}/asset_keys" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/vnd.contentful.management.v1+json" \
  -H "Accept: application/json" \
  -d '{"expiresAt": {{$expires_at}}}' \
  
  # Source: Contentful Content Management API - Asset keys (POST /spaces/{space_id}/asset_keys) — expiresAt is required (Unix epoch seconds) and must be within 48 hours in the future. Base URL: https://api.contentful.com. See asset keys docs for details.
  
Create asset key · Contentful · OpenIntegrations