Link Search Menu Expand Document

GET /api/organization (show)

This endpoint returns basic information about your organization, including whether or not your organization makes use of a single-sign-on service for authentication.

curl \
  -H 'Authorization: Token token="<%= api_key %>"' \
  https://coderpad.io/api/organization

returns

{
  "status": "OK",
  "organization_name": "ACME Computing",
  "user_count": 137,
  "users": [
    {
      "email": "wile@acme.com",
      "name": "Wile Coyote"
    }
    // ... followed by the rest of the users in your org.
  ],
  "default_language": "erlang", // default language for new users in your organization
  "single_sign_on_supported": true, // users will be directed to login via the single sign in portal
  "single_sign_in_url": acme.coderpad.io // the url for that portal.
}