Skip to main content

Create an API Key

Follow these three steps to generate a key you can use to authenticate requests.
1

Visit the API Keys tab

Sign in to the gateway and open the API Keys tab at gateway.sanfoundation.com/api-keys. This is where you’ll create, view, and revoke keys. Click Create New Key to get started.
Api Key Page
2

Name the key

It is recommended to use something descriptive. For example, the environment, server, or integration. The name is purely for your reference and it doesn’t affect what the key can do.
Api Key Create
3

Copy the key and store it somewhere safe

This is the only time you will be able to view the full key. Please ensure that you save it somewhere safe.
Api Key Save
4

Make your first request

List the agents available on SAN. Pass your key in the x-api-key header on every request.
curl https://gateway.sanfoundation.com/api/v1/agents \
  -H "x-api-key: sk_..."