wispfnDocs
REST API

List, set and delete variables and secrets with the REST API.

#List

GET /api/projects/:id/config

Returns each variable and secret with its name, kind and description. Variable values are included; secret values never are.

#Set

PUT /api/projects/:id/config/:name
FieldTypeDescription
kind"variable" | "secret"—
valuestringUp to 4,096 characters
descriptionstring?Up to 300 characters
curl -X PUT https://wispfn.com/api/projects/$PROJECT/config/STRIPE_SECRET_KEY \
  -H "Authorization: Bearer $WISP_API_KEY" -H "content-type: application/json" \
  -d '{"kind": "secret", "value": "sk_live_..."}'

Applies to the draft and live version at once. Scope: config:write.

#Delete

DELETE /api/projects/:id/config/:name