tawbar API

tawbar API allows fetching secrets to .env files

Get /projects/v1/

Request - curl example

curl https://api.tawbar.com/projects/v1/{PROJECT_ID}/{STATE}
-H "Authorization: {SECURITY_TOKEN}"

Where

  • {SECURITY_TOKEN} – your security token. Lean more
  • {PROJECT_ID} – you can find in project's settings.
  • {STATE} – is the state you defined for this project (e.g. develop).

Response - key=value

PORT=3000
URL=http://localhost
ENABLE_BILLING=false

Fetch secrets to .env file - curl example

curl supports additional option -o which saves command output to specified path. The example below saves project's secrets to .env in the current directory:

curl https://api.tawbar.com/projects/v1/{PROJECT_ID}/{STATE}
-H "Authorization: {SECURITY_TOKEN}"
-o .env

We suggest checking out tawbar CLI as it provides more convenient access to our API.