- By implementing an OAuth 2.0 flow
- By generating an API key for your workspace
Generating access tokens
OAuth 2.0
Attio implements the standard OAuth 2.0 specification. You can find the reference for our OAuth authorize, token exchange and introspect endpoints here. If you would prefer a tutorial on how to implement an OAuth 2.0 flow into an existing app, you can find one here.API key
If you only need a token for a single workspace, you can generate an API key in the developer settings page of your apps. You can find docs on to do this here.Using tokens
Both OAuth access tokens and single-workspace access token are used in the same way. Pass the value of the token in theAuthorization
header of your requests like so.
We also support HTTP Basic
Authentication,
where the username is the token and the password is left blank. However, we recommend using Bearer
authentication where possible.