List members and invites
GET
/api/orgs/{org}/members
const url = 'https://api-dev.wrktr.com/api/orgs/example/members';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://api-dev.wrktr.com/api/orgs/example/members \ --header 'Authorization: Bearer <token>'The organization’s members with their roles, and pending invites.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
Responses
Section titled “Responses”OrgPeople
Media typeapplication/json
object
members
required
Example
{ "members": [ { "role": "owner", "joinedAt": "Infinity" } ], "invites": [ { "role": "owner", "createdAt": "Infinity" } ]}Unauthorized
Media typeapplication/json
object
_tag
required
string
message
required
string
Example
{ "_tag": "Unauthorized"}OrgNotFound
Media typeapplication/json
object
_tag
required
string
org
required
string
Example
{ "_tag": "OrgNotFound"}