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
).PORT=3000
URL=http://localhost
ENABLE_BILLING=false
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.