Skip to main content
POST
/
cache
/
set
Set User Cache Value
curl --request POST \
  --url https://api.veryfront.com/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.

Body

application/json
key
string
required

Cache key

Required string length: 1 - 512
Pattern: ^[a-zA-Z0-9_:.\-/]+$
value
string
required

Value to cache (typically JSON-serialized)

ttl
number

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

Required range: 0 <= x <= 86400

Response

Value stored successfully

success
boolean
required