Skip to main content

Authentication

The Python SDK uses API keys for authentication. Visit your API keys page to generate an API key.

Set your API key as outlined below:

import swarmnode

swarmnode.api_key = "YOUR_API_KEY"

After setting your API key, you can use the SDK to make authenticated requests.

agents = swarmnode.Agent.list()