FinAutCRM API

Getting started

Getting client credentials

Note

Norsk Test admin: create client www/crm$ python create_client.py Enter client name: crmapi-[customer] Enter allowed scopes: read write

To access the FinAutCRM API, you need to obtain client credentials. Please contact Norsk Test to get your client ID and client secret.

We will need the email and mobile number of the person responsible for the integration (for security reasons).

You will receive:

Client Name: [your_client_name]
Allowed Scopes: read write
Client ID: [your_client_id]
Client Secret: [your_client_secret]

Getting an access token

See example client at: github.com/norsktest/crm-api-client

Using cURL

To obtain an access token, make a POST request to the token endpoint with your client credentials. Here is an example using cURL:

curl -X POST http://localhost:8000/api/v1/auth/token \
  -H "Content-Type: application/json" \
  -d '{
    "client_id": "your_client_id",
    "client_secret": "your_client_secret",
    "grant_type": "client_credentials",
    "scope": "read write"
  }'

This will return a JSON response containing the access token:

Logging in (authentication)

For detailed API documentation, please visit the Swagger UI or the ReDoc page.