GET
/api/v1/workspaces/{workspaceId}/members
const url = 'https://app.monitorly.cloud/api/v1/workspaces/WORKSPACE_ID/members';const options = { method: 'GET', headers: {cookie: '__Host-monitorly_session=<__Host-monitorly_session>'}};
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://app.monitorly.cloud/api/v1/workspaces/WORKSPACE_ID/members \ --cookie __Host-monitorly_session=<__Host-monitorly_session>The members of the workspace and their roles. Every member sees who is in it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”workspaceId
required
string format: uuid
The workspace’s id.
Example
WORKSPACE_IDResponses
Section titled “Responses”The members.
Media typeapplication/json
Array<object>
object
displayName
required
string
email
required
string
role
required
string
totpEnabled
required
boolean
userId
required
string format: uuid
Example
[ { "role": "member", "userId": "USER_ID" }]Bad Request.
auth.credentials_conflict: the request carries both a session cookie and a token
Media typeapplication/problem+json
object
detail
string | null
errors
required
Field errors, empty for errors of the whole request.
Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required
JSON pointer into the request body.
string
status
required
integer format: int32
title
required
string
type
required
Stable code, for example check.timeout_exceeds_interval.
string
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Unauthorized.
auth.unauthenticated,auth.session_expired: no session, or it endedtoken.invalid: the token is malformed, unknown, revoked or expired, or its creator left the workspace
Media typeapplication/problem+json
object
detail
string | null
errors
required
Field errors, empty for errors of the whole request.
Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required
JSON pointer into the request body.
string
status
required
integer format: int32
title
required
string
type
required
Stable code, for example check.timeout_exceeds_interval.
string
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Forbidden.
auth.forbidden: your role is too low for thistoken.not_allowed: this operation needs a signed-in session; tokens cannot call it
Media typeapplication/problem+json
object
detail
string | null
errors
required
Field errors, empty for errors of the whole request.
Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required
JSON pointer into the request body.
string
status
required
integer format: int32
title
required
string
type
required
Stable code, for example check.timeout_exceeds_interval.
string
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Not Found.
request.not_found: it does not exist, or you cannot see it
Media typeapplication/problem+json
object
detail
string | null
errors
required
Field errors, empty for errors of the whole request.
Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required
JSON pointer into the request body.
string
status
required
integer format: int32
title
required
string
type
required
Stable code, for example check.timeout_exceeds_interval.
string
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}