Sparkwise Account API (1.1.0)

Download OpenAPI specification:

API for user synchronization, session cluster retrieval and participants completions.

URL: https://account-api.sparkwise.co/

Clusters

Endpoints for retrieving session clusters for the organization

Get available session clusters

Retrieves session clusters for the organization. Clusters with self-registration enabled include an iframe embed code for the signup form.

Authorizations:
ServerApiKey
query Parameters
from
string <date-time>
Example: from=2024-01-01T00:00:00Z

Filter clusters created on or after this date, inclusive (ISO 8601 format)

to
string <date-time>
Example: to=2024-12-31T00:00:00Z

Filter clusters created before this date, exclusive (ISO 8601 format). Must be later than 'from' if both are provided.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Completions

Endpoints for retrieving participant completion data

Get session completions

Retrieves participants' completion data.

Authorizations:
ServerApiKey
query Parameters
from
string <date-time>
Example: from=2024-01-01T00:00:00Z

Filter completions for sessions that occurred on or after this date, inclusive (ISO 8601 format)

to
string <date-time>
Example: to=2024-12-31T00:00:00Z

Filter completions for sessions that occurred before this date, exclusive (ISO 8601 format). Must be later than 'from' if both are provided.

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Users

Endpoints for managing users via batch operations.

Get users

Retrieves a paginated list of users in the organization.

Authorizations:
ServerApiKey
query Parameters
page
integer >= 0
Default: 0
Example: page=0

Page number (0-indexed)

pageSize
integer [ 1 .. 200 ]
Default: 200
Example: pageSize=200

Number of users per page

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    },
  • "error": null
}

Batch upsert users

Creates or updates multiple users in the organization. Users that don't exist will be created, and users that already exist will be updated. Users not using trusted domains (if enabled) will not be created/updated.

Authorizations:
ServerApiKey
Request Body schema: application/json
required
required
Array of objects (UserTemplate) [ 1 .. 200 ] items

Responses

Request samples

Content type
application/json
{
  • "users": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    },
  • "error": null
}

Batch deactivate users

Deactivates multiple users from the organization.

Authorizations:
ServerApiKey
Request Body schema: application/json
required
required
Array of objects (UserRef) [ 1 .. 200 ] items

Responses

Request samples

Content type
application/json
{}

Response samples

Content type
application/json
{
  • "success": false,
  • "error": {
    },
  • "data": null
}