Skip to main content

Authentication

Getting an API key

The easiest way is via the CLI:
This generates a wallet, registers it, and saves your API key to ~/.dria/config.json.

Manual registration

You can also register programmatically by signing a message with an Ethereum wallet and calling:
Request body:
The signature is an EIP-191 personal sign of the message: dria-login-{timestamp}. Response:

Using the API key

Include the key as a Bearer token in the Authorization header:
Example with curl:

Environment variable

You can set the API key as an environment variable instead of using the config file:
The CLI and SDK will pick it up automatically.