Skip to main content
POST
/
projects
/
{project_reference}
/
cache
/
set
Set Cache Entry
curl --request POST \
  --url https://api.veryfront.com/projects/{project_reference}/cache/set \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "key": "<string>",
  "value": "<string>",
  "ttl": 43200
}
'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Authentication via JWT token or API key. JWT: Get from Veryfront dashboard. API Key: Format "vf__" - create via /api-keys endpoint.

Path Parameters

project_reference
string
required

Project ID or slug

Body

application/json
key
string
required

Cache key

Required string length: 1 - 512
value
string
required

Value to cache

ttl
number

TTL in seconds (0 = no expiry, default: 300, max: 86400)

Required range: 0 <= x <= 86400

Response

Cache set successfully

success
boolean
required