API tokens
Before you begin
Section titled “Before you begin”- Permission: Manage settings (
settings:write). - You are signed in as a person. A token can’t create another token.
Create a token
Section titled “Create a token”- Go to Devices & Access › API tokens and choose Create token.
- Enter a Name and Expires after (days), from 1 to 365.
- Choose the scopes. You can’t choose a scope your role doesn’t have.
- Create it and copy the token from Copy your new token. It starts
ewt_and is shown once.
Use it
Section titled “Use it”curl -H "Authorization: Token ewt_xxxxxxxx" https://api.endpointworks.com/api/approvalsA token can never do more than its owner’s current role allows. See API reference.
Revoke a token
Section titled “Revoke a token”Choose Revoke on the token. It stops working at once. Tokens also stop when their owner is deactivated.