Team
11 endpoints at https://api.kosa8.com, sent with Authorization: Bearer $KOSA8_API_KEY. Generated from the API's own OpenAPI description, which a test holds to the router.
List members#
/v1/membersscope sandboxes:readcurl -s -X GET https://api.kosa8.com/v1/members \ -H "Authorization: Bearer $KOSA8_API_KEY"
Invite or change a member#
/v1/membersscope adminemailrequiredstringrolerequiredstringcurl -s -X POST https://api.kosa8.com/v1/members \ -H "Authorization: Bearer $KOSA8_API_KEY" \ -H 'Content-Type: application/json' -d @body.json
Remove a member, or revoke a pending invitation#
/v1/members/{email}scope adminemailrequiredpath · stringcurl -s -X DELETE https://api.kosa8.com/v1/members/$EMAIL \ -H "Authorization: Bearer $KOSA8_API_KEY"
Send a pending member's invitation email again (at most once every 10 minutes)#
/v1/members/{email}/invitescope adminA member who has never signed in is pending (status in GET /v1/members). invite_email says whether an email went: none goes where mail is not set up, or for a Starter organization that has not paid.
Parametersemailrequiredpath · stringcurl -s -X POST https://api.kosa8.com/v1/members/$EMAIL/invite \ -H "Authorization: Bearer $KOSA8_API_KEY"
The org's single sign-on connection (OIDC or SAML 2.0), what to enter in the IdP (saml_sp), and the SCIM base URL#
/v1/ssoscope admincurl -s -X GET https://api.kosa8.com/v1/sso \ -H "Authorization: Bearer $KOSA8_API_KEY"
Set up or change single sign-on: OIDC or SAML 2.0, domains, default role, just-in-time, enforcement, SCIM group-to-role mapping#
/v1/ssoscope admin · ownerOwner only: an owner member or the organization's own admin key; an admin member gets 403.
JSON bodyprotocol"oidc" | "saml"issuerstringclient_idstringclient_secretstringidp_metadata_xmlstringidp_metadata_urlstringidp_entity_idstringidp_sso_urlstringidp_certificatesarray of stringallow_idp_initiatedbooleandomainsarray of stringdefault_role"admin" | "developer" | "viewer"jitbooleanenforcebooleanscim_group_rolesobject | nullcurl -s -X PUT https://api.kosa8.com/v1/sso \ -H "Authorization: Bearer $KOSA8_API_KEY" \ -H 'Content-Type: application/json' -d @body.json
Remove single sign-on (and revoke the SCIM token)#
/v1/ssoscope admin · ownerOwner only: an owner member or the organization's own admin key; an admin member gets 403.
Responsescurl -s -X DELETE https://api.kosa8.com/v1/sso \ -H "Authorization: Bearer $KOSA8_API_KEY"
Check a domain's DNS TXT record#
/v1/sso/domains/{domain}/verifyscope admin · ownerOwner only: an owner member or the organization's own admin key; an admin member gets 403.
Parametersdomainrequiredpath · stringcurl -s -X POST https://api.kosa8.com/v1/sso/domains/$DOMAIN/verify \ -H "Authorization: Bearer $KOSA8_API_KEY"
The SCIM base URL and the live SCIM token's id and prefix (never its secret)#
/v1/sso/scim-tokenscope admin · ownerOwner only: an owner member or the organization's own admin key; an admin member gets 403.
Responsescurl -s -X GET https://api.kosa8.com/v1/sso/scim-token \ -H "Authorization: Bearer $KOSA8_API_KEY"
Make a SCIM bearer token (k8c_scim_…, shown once); any older token stops working at once#
/v1/sso/scim-tokenscope admin · ownerOwner only: an owner member or the organization's own admin key; an admin member gets 403.
Responsescurl -s -X POST https://api.kosa8.com/v1/sso/scim-token \ -H "Authorization: Bearer $KOSA8_API_KEY"
Revoke the SCIM token#
/v1/sso/scim-tokenscope admin · ownerOwner only: an owner member or the organization's own admin key; an admin member gets 403.
Responsescurl -s -X DELETE https://api.kosa8.com/v1/sso/scim-token \ -H "Authorization: Bearer $KOSA8_API_KEY"