SENAR API Documentation
This document provides technical information for developers working with Senar's data. It includes instructions for:
Authenticating access to the API
Adding users and assigning collections
Accessing user and activity data
Registering webhooks for real-time data notifications
Each section includes endpoint examples and JSON responses to guide you. If you're new to Senar or integrating its data into your system, this guide will help you get started smoothly.
1. Authentication
Method: POST
You need to be authenticated to access Senar's data. Please contact support to obtain your login and password.
Endpoint
https://studio.senar.io/api/auth/login
Request Body
Response
The resulting token is used in the rest of the requests to authenticate you. It must be included in the Authorization
header using the Bearer scheme.
Example:
2. Add User and Assign Collection
Method: POST
Use this endpoint to add a new user and assign them to a specific collection.
Endpoint
https://studio.senar.io/integration/data/user_assign
Request Body
Response
Notes:
This endpoint requires authentication (see section 1).
The
collectionId
must reference a valid collection owned by the authenticated user.To find a collection’s ID , open it in Senar Studio and copy the number at the end of the URL. Example:
https://studio.senar.io/Collections/Edit/42
→42
To assign multiple collections, repeat the request with a different
collectionId
each time.The
password
field must comply with Senar’s format requirements: at least 6 characters, containing letters and at least one number.User information can't be updated or deleted via the API — please use Senar Studio to make changes.
3. Get Users
Method: GET
Users register via a form available within the Senar application. This endpoint returns all users associated with the authenticated account.
Endpoint
https://studio.senar.io/integration/data/users
Sample Response
4. Get Activity Data
Method: GET
An activity represents the data collected when a user completes a scenario.
Endpoint
https://studio.senar.io/integration/data/activities
Sample Response
5. Webhook Registration
Method: POST
Use webhooks to receive real-time notifications when new users or activities are recorded. The response returns an ID you can use later to unsubscribe from the webhook if needed.
Endpoint
https://studio.senar.io/integration/data/webhook_register
Request Body
Response
Last updated