TypeScript
const options = {method: 'GET'}; fetch('http://localhost:8000/v1/auth/organizations/{id}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "success": true, "data": { "id": "<string>", "name": "<string>", "slug": "<string>", "logo": "<string>", "metadata": {}, "createdAt": "2023-11-07T05:31:56Z", "role": "owner", "members": [ { "userId": "<string>", "role": "owner" } ] }, "meta": { "requestId": "<string>", "timestamp": "<string>" } }
Get organization details. User must be a member of the organization.
1
Organization details
true
Show child attributes
Was this page helpful?