Authorization is the process of verifying the identity of a user and granting access to their Dovetail data. It also ensures that the entity making the request is who it claims to be. Dovetail uses API tokens to identify a user and control access to the API.
Enter a label for the key and create the key.Note: The UI will only display the key to you once so make sure you copy it to somewhere secure. Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, etc.
The token is only valid for a period of 30 days, a new token needs to be generated at the end of the period.You can manually revoke a token. This is really useful if you suspect that an API token has been leaked. Once a token has been revoked, it cannot be undone and any applications using this developer key will no longer be granted access to Dovetail data.
To authenticate your requests, pass the newly created key with header:Authorization: Bearer <DOVETAIL_API_TOKEN>.See example below using the projects endpoint: