Skip to content

Setting up an API User

How to create a user for API access. This is useful for machine to machine applications where the Oauth2.0 authorization code flow may not be suitable.
  1. Open Knak Builder and navigate to Admin (top left button).

    API Role

  2. Navigate to Company > Roles > + Create Role

    API Role Step 2a API Role Step 2b

  3. Add the Can Manage API Tokens permission, along with any other permissions that are required for your specific use case.

  4. Click Create

  1. Navigate to Company > Users > Invite User

    API User 1

  2. Enter an Email, First name and Last name. You can use + in the email address (e.g. youremail+api@domain.com)

    API User 2

  3. In Select Roles, choose the role created earlier

    API User 3

  4. Click Save User and Send Invite

    API User 4

More info here: Add/Remove Users

To allow your platform to access data in Knak, we recommend using a permanent API key. Use the API User created earlier. Generate your key here: https://enterprise.knak.io/account/api-access

Learn how to use API tokens in requests: Authentication Documentation