LogoRecal

Get Organization

Get organization by slug

GET
/v1/organizations/{orgSlug}

Authorization

AuthorizationRequiredBearer <token>

The Recal API token

In: header

Path Parameters

orgSlugRequiredstring
Minimum length: 3Maximum length: 128Pattern: "^[a-z0-9]+(?:[_-][a-z0-9]+)*$"

Response Body

TypeScript Definitions

Use the response body type in TypeScript.

nameRequiredstring | null | null
slugRequiredstring
createdAtRequiredDate | string | number
membersarray<unknown>

TypeScript Definitions

Use the response body type in TypeScript.

responseRequiredstring
Value in: "Organization not found"
curl -X GET "https://api.recal.dev/v1/organizations/string" \
  -H "Authorization: Bearer <token>"
fetch("https://api.recal.dev/v1/organizations/string", {
  headers: {
    "Authorization": "Bearer <token>"
  }
})
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://api.recal.dev/v1/organizations/string"

  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "Bearer <token>")
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://api.recal.dev/v1/organizations/string"

response = requests.request("GET", url, headers = {
  "Authorization": "Bearer <token>"
})

print(response.text)
{
  "name": "Recal",
  "slug": "recal",
  "createdAt": "2025-04-24T00:00:00.000Z",
  "members": []
}
"Organization not found"