Skip to main content
Sumo Logic

API Authentication

Sumo Logic supports the following options for API authentication:

  • Access ID and access key
  • Base 64-encoded token

See Access Keys to generate an access key. Make sure to copy the key your create, because it is displayed only once.

When you have an accessId and accessKey you can execute requests such as the following:

curl -u "<accessId>:<accessKey>" -X GET https://api.sumologic.com/api/v1/collectors?limit=2

If you prefer to use a basic authentication token, you can do a Base64 encoding of <accessId>:<accessKey> and run the following:

curl -H "Authorization: Basic <token>" -X GET https://api.sumologic.com/api/v1/collectors?limit=2