API
Last updated
Last updated
Authentication is done by passing an access token in the Authorization
header of your HTTP request:
Generate and manage your Marple API tokens in the settings tab. Click "Add token" to generate a new token with the desired expiry date and user role (editor/admin). Tokens are only shown once, so keep them securely stored after generation.
The HTTP requests may be done in any language, but the easiest way to use the Marple API is through our Python SDK.
There are two ways to pass arguments to an endpoint:
URL encoding (Key-Value Pairs) – Used in GET requests.
JSON encoding (Request Body) – Used in POST requests.
The method depends on the endpoint, but generally:
GET requests → Use URL encoding.
POST requests → Use JSON encoding.
You can find the full endpoint specifications at the bottom of this page.
This ensures proper data formatting based on the request type.
All API requests return JSON data in the following structure:
The request_time
field indicates how long the server took to process the request, while the message
field contains the actual response data.
Using the requests
library:
Using the Marple SDK:
Always access the message
key to extract the relevant data from the response.
Some endpoints require administrator privileges. Those will only be accessible by tokens with Admin role. Admin tokens can only be created by administrators of the workspace.
Changing the role of a user can be done in the 'Team' tab of the workspace settings (see Team and accounts).