- Create an API-user in Dottie, note the API-key
- Authenticate by posting the credentials to
api.dottie.no/api/auth/apikey - Use the API 🚀 (with bearer token from above as a header)
All endpoints are documented here: API-documentation (Swagger)
Goto settings > integrations > Dotties API in Meet Dottie and click the "Create API-user" button. It's available if your have EDIT access rights to Dottie Settings, and enables you to create one or more Dottie users that you will be using the API on behalf of
You will need to copy the API key from the window when you create the user, since it will only be showed to you once. The API user will by default be assigned the role ADMIN, and will have access rights according to the regular access management settings. You can assign roles as you wish to this user, or regenerate the API-key by clicking edit.
POST https://api.dottie.no/api/auth/apikey
{
"clientId": "CLIENT ID FROM ABOVE",
"apiKey": "API-KEY FROM ABOVE"
}
{
"token": "eyJhbGciOiJIUzI1NiJ9.SGVsbG8sIHdvcmxkIQ.onO9Ihudz3WkiauD ..."
}
All requests after acquiring the auth-token must be sent with the header
Authorization: Bearer TOKEN FROM ABOVE
from the example above, that header would be:
Authorization: Bearer eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhHQ00ifQ.K52jFwAQJ ...
All the endpoints are available here: API-documentation (Swagger)
This is the same API as the Meet Dottie application uses, so if you are looking for a particular action, you can view the network requests in your browser (developer tools) and imitate what you see there, just remember to use the token from this flow, and not the one in the browser.
If you don't want to use client credentials as this flow describes, and instead use your own ID provider - you can pass a valid OAuth2 id_token issued from Azure AD or Google Workspace to authenticate against the endpoint /auth/SingleSignOn. These requirements need to be met:
- The user (e-mail) in the id_token needs to be present in the Dottie tenant
- The Dottie application needs to be approved with your ID provider. If your users use already user Azure AD or Google Workspace to login, this has been completed.
- The audience-claim in the token needs to have the Dottie application ID set. Please contact us to receive the respective providers ID