Project users
const url = 'https://testomato.com/api/project/5e9602e7a39e5a46428b457f/users';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://testomato.com/api/project/5e9602e7a39e5a46428b457f/users \ --header 'Authorization: Bearer <token>'Return a list of users with access to the project
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”A unique project ID
Example
5e9602e7a39e5a46428b457fResponses
Section titled “Responses”Return array of User objects
object
Main user email
A phone number (optional) and not required
Date and time when current common confirm token expires
object
User name
Was user email confirmed?
User time zone name
User API Key
object
Project permissions for current user
object
Can the current user view results?
Can the current user run checks?
Can the current user edit tests?
Can the current user edit project settings?
Can the current user manage other users?
Can the current user view the API key?
Can the current user leave the project?
Is user owner of the Project?
Example
[ { "email": "roman@testomato.com", "confirmTokenExpiration": { "date": "2022-10-21 13:10:35.000000", "timezone_type": 3, "timezone": "Europe/Prague" }, "name": "John Tomatoseeds", "timezone": "Europe/Prague", "reportPeriod": "week", "notificationEmail": "roman+notifications@testomato.com", "notificationDelay": 1, "apiKey": "abcdef", "id": 7, "role": { "id": 4, "name": "project admin", "permissions": [ [ "read", "run", "editTests", "edit", "manageUsers", "apiKey" ] ], "systemRole": true, "permissionsSwitches": { "manageUsers": true, "apiKey": true, "leave": true } }, "isPayer": false, "canBeRemoved": true }]The API token is missing, malformed or expired. Request a new one from
POST /api/authenticate.
object
Error message text
Error code number
Example
{ "message": "Access denied! Please log in to access this resource.", "code": 401, "ok": false, "error": true}The token is valid but the operation is not allowed. Two distinct causes:
- the subscription plan does not include API access — every endpoint returns this, regardless of the resource
- the account lacks the required role on the project — reading needs
read, changing checks needseditTests, and so on. See Project permissions.
object
Error message text
Error code number
Example
{ "message": "Sorry! Your current plan does not support access to Testomato API.", "code": 403, "ok": false, "error": true}