How to create an Athenian API key

Generate an API key

Paul Bleicher avatar
Written by Paul Bleicher
Updated over a week ago

Here are the steps to generate a persistent API key"

  1. Get your Account ID & bearer token by visiting https://app.athenian.co/bearer. You need to wait a few seconds for the token to load.

  2. Then generate your API key using the following call.
    โ€‹curl -H "Authorization: Bearer <bearer token>" -d '{"account": <account id>, "name": "My Persistent API Token"}' https://api.athenian.co/v1/token/create -H 'Content-Type: application/json'

  3. Once generated, save your key as you won't be able to see it again. However, you can generate as many keys as you like or invalidate them (see our API spec here on how to invalidate a token).

Did this answer your question?