Skip to main content
GET
/
organization
/
teams
Organization Teams
curl --request GET \
  --url https://api.fal.ai/v1/organization/teams \
  --header 'Authorization: <api-key>'
import requests

url = "https://api.fal.ai/v1/organization/teams"

headers = {"Authorization": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: '<api-key>'}};

fetch('https://api.fal.ai/v1/organization/teams', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "teams": [
    {
      "username": "acme-corp",
      "name": "Acme Corporation",
      "is_org_root": true,
      "created_at": "2024-01-15T10:30:00Z"
    },
    {
      "username": "acme-ml-team",
      "name": "ML Research Team",
      "is_org_root": false,
      "created_at": "2024-03-01T14:00:00Z"
    }
  ]
}
{
  "error": {
    "type": "validation_error",
    "message": "Invalid request parameters"
  }
}
{
  "error": {
    "type": "authorization_error",
    "message": "Authentication required"
  }
}
{
  "error": {
    "type": "authorization_error",
    "message": "Access denied"
  }
}
{
  "error": {
    "type": "not_found",
    "message": "Resource not found"
  }
}
{
  "error": {
    "type": "rate_limited",
    "message": "Rate limit exceeded"
  }
}
{
  "error": {
    "type": "server_error",
    "message": "An unexpected error occurred"
  }
}

Authorizations

Authorization
string
header
required

Admin API key must be prefixed with "Key ", e.g. Authorization: Key YOUR_ADMIN_API_KEY

Response

Organization teams retrieved successfully

Response containing organization team details

teams
object[]
required

List of teams in the organization