Skip to main content

Getting an authentication token

To integrate with any endpoint in Codenull you will need a token to authenticate. First you must to generate an API_KEY from the application.

Go to Designer > Integrations > API Keys
From this section you can generate one or more API keys for the application. Each generated API key returns:
  • clientId: unique identifier for this integration.
  • apiKey: secret value used to request an authentication token.
The apiKey is shown only once when it is generated. Store it securely. Codenull only stores a hash of the API key and it cannot be retrieved later. You can generate multiple API keys for the same application, for example one per external integration. You can also delete an API key to revoke access for that integration. To request a token, call:
Since API version `2.10.0`, `/api/auth/token` no longer accepts Auth0 `client_id` and `client_secret` from external clients. Integrations must use the `clientId` and `apiKey` generated from the application Designer.

Consuming a Codenull enpoint

Consuming from a browser

If you are planning to consume any endpoint from a browser (Client-side) you will need to configure the CORS and allow from which domain you are consuming the API To allow a domain to consume any Codenull API endpint you must add it on Application Settings section