Docs Index

Doc

GET /api/organization

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://app.coderpad.io/api/organization
Code language: JavaScript (javascript)

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. }
Code language: JSON / JSON with Comments (json)