Skip to content

Env variables API

3 operationsjobs:writejobs:read

Secrets and settings your script jobs read. Stored encrypted, bound to a job by name, never returned and hidden in script output.

DELETE/env/{name}Delete an env variable.
PUT/env/{name}Set an env variable that script and browser jobs can bind. The value is stored encrypted and never returned.
GET/envList the names of the account's env variables.

Delete an env variable.

DELETE/v1/env/{name}
scope jobs:write

Parameters

name
string · path
required

Response

1 fields
statusboolean
curl -X DELETE "https://api.hoshime.com/v1/env/{name}" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "status": false
}

Set an env variable that script and browser jobs can bind. The value is stored encrypted and never returned.

PUT/v1/env/{name}
scope jobs:write

Parameters

name
string · path
required

Request body

value
string
required

Response

3 fields
createdAtinteger (int64)
namestring
updatedAtinteger (int64)
curl -X PUT "https://api.hoshime.com/v1/env/{name}" \
  -H "Authorization: Bearer $HOSHIME_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "value": "…"
  }'
200 Response shape
{
  "createdAt": 0,
  "name": "…",
  "updatedAt": 0
}

List the names of the account's env variables.

GET/v1/env
scope jobs:read

Parameters

page
integer
limit
integer
withTotal
boolean

Response

8 fields
pageOptionsPageResult | null
hasNextboolean
pageinteger (int32)
totalinteger (int64)
resultsEnvVar[]
createdAtinteger (int64)
namestring
updatedAtinteger (int64)
curl "https://api.hoshime.com/v1/env" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "pageOptions": {
    "hasNext": false,
    "page": 0,
    "total": 0
  },
  "results": [
    {
      "createdAt": 0,
      "name": "…",
      "updatedAt": 0
    }
  ]
}
esc
↑↓ move↵ open