Skip to main content
GET
/
api
/
v1
/
organizations
/
{id}
Get organization
const options = {method: 'GET'};

fetch('http://localhost:8000/api/v1/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>"
  }
}

Path Parameters

id
string
required
Minimum string length: 1

Response

Organization details

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required