Get an organization
GET
/api/orgs/{org}
const url = 'https://api-dev.wrktr.com/api/orgs/example';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 \ --header 'Authorization: Bearer <token>'Its slug and name, whether it’s someone’s personal one, and your role in it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
Responses
Section titled “Responses”OrgInfo
Media typeapplication/json
object
slug
required
string
name
required
string
personal
required
boolean
role
required
string
Example
{ "role": "owner"}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"}