HTTP API

Secrets

2 routes your API key can call. Each says who may call it; every example assumes KEY is your API key. What only the dashboard does (signing in, making API keys, connecting accounts) isn't listed here: it's in the full OpenAPI spec.

GET/v1/workspaces/{wid}/secrets

One page of the workspace's secret groups, by name. Never values.

People and API keys

A person sees every group, with each value's hint. An API key sees only the groups it was granted, with their variables' names and no hints: what it may name in secret_groups.

ParameterInTypeAbout
widInpathTypestringAboutWorkspace id
page?InqueryTypeintegerAboutA missing or invalid page is 1
perPage?InqueryTypeintegerAboutHeld between 1 and 100

Answer · 200

  • secret_groupsSecretGroup[]required
    • idstring
    • namestring
    • versioninteger
    • entry_countinteger
    • entriesobject[]
    • created_atstring
    • updated_atstring
  • metaMetarequired
    • pageinteger
    • totalinteger

      Items matching, across all pages

    • pageCountinteger

      ceil(total / perPage)

    • perPageinteger
Terminal
curl -X GET 'https://annex.eversonder.com/v1/workspaces/wsp_…/secrets' \
  -H 'Authorization: Bearer anx_live_…'
GET/v1/workspaces/{wid}/secrets/{gid}/env

A group as a .env file, for local development

People and API keys

For a signed-in person, or an API key granted the group (any other key gets 404). Every call is written to the audit log first. Lines are NAME=value (taken literally, newlines too); a value holding ' is double-quoted with \\, \" and \n escaped. curl -H "Authorization: Bearer anx_live_…" …/secrets/{gid}/env > .env

ParameterInTypeAbout
widInpathTypestringAboutWorkspace id
gidInpathTypestringAboutSecret group id (sec_…) or name

Answer · 200

Cache-Control no-store

Terminal
curl -X GET 'https://annex.eversonder.com/v1/workspaces/wsp_…/secrets/gid/env' \
  -H 'Authorization: Bearer anx_live_…'