Skip to main content
This guide gets an access token and lists the assets in your workspace. You need a Secfix workspace and permission to manage API keys in it.
1

Create an API key

In the Secfix app, go to Settings → API and create an API key. Give it a name and Read access (all:read).You get a client_id and a client_secret. The secret is shown once, so copy it somewhere safe. See Managing API keys.
2

Get an access token

Call the token endpoint with the OAuth 2.0 client_credentials grant:
Response
Reuse the token until it expires. expires_in is its lifetime in seconds. Requesting a new token for every call uses up your rate limit. See Authentication.
3

List your assets

Send the token in the Authorization header:
Response
4

Get the next page

While pageInfo.hasNextPage is true, send pageInfo.endCursor as pageCursor:
See Pagination.

Next steps

Authentication

Token reuse and the one-active-token rule.

Scopes

The access each endpoint requires.

Work with inventory

Filter, create, update, and delete assets.

API reference

Try every endpoint from your browser.