Note: The API is currently restricted to active Verdigris customers.
Creating a new API key
If you're a Verdigris customer and are interested in using the API, you will need an API Key. You can generate your own API key or multiple keys for different activities through the Verdigris Admin Console.
Go to the Admin Console at admin.verdigris.co to access your profile.
Select Users & API Keys at the top of the screen.
Click the API Keys tab.
Click Create New Key.
Enter a name and description for the key. Use these fields to help you identify which key is used for different projects.
Click Create.
Copy and save the Client ID and Client Secret shown on the screen.
โ ๏ธ Important: This is the only time you will see the Client Secret. Be sure to copy it to a safe location.
If you lose it, you will need to create a new API key.
Using your API key
Use the Client ID and Client Secret to request a bearer token by making a call to:
โhttps://auth.verdigris.co/oauth/tokenFor the call to get a token, use the request header and body below. Replace
"my_client_id"
and"my_client_secret"
with your actual Client ID and Client Secret.
import requests url = "https://auth.verdigris.co/oauth/token"
headers = {"Content-Type": "application/json"}
body = { "client_id": "my_client_id",
"client_secret": "my_client_secret",
"grant_type": "client_credentials",
"audience": "https://api.verdigris.co/" }
response = requests.post(url, headers=headers, json=body) print(response.json())
The response will include your bearer token. Use this token to authenticate API requests.
Managing API keys
You can view all your API keys in the API Keys tab.
Each key shows its name, description, and API key value.
To revoke access, click Delete next to a key.