Team
10 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#
GET
Responses/v1/membersscope sandboxes:read200401403
curl -s -X GET https://api.kosa8.com/v1/members \ -H "Authorization: Bearer $KOSA8_API_KEY"
Invite or change a member#
POST
JSON body/v1/membersscope adminemailrequiredstring—
rolerequiredstring—
200401403
curl -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#
DELETE
Parameters/v1/members/{email}scope adminemailrequiredpath · stringMember email, percent-encoded
200401403
curl -s -X DELETE https://api.kosa8.com/v1/members/$EMAIL \ -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#
GET
Responses/v1/ssoscope admin200401403
curl -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#
PUT
/v1/ssoscope admin · ownerOwner only: an owner member or the organization's own admin key; an admin member gets 403.
JSON bodyprotocol"oidc" | "saml"Default: the current protocol, else oidc
issuerstringOIDC: the provider's https issuer URL
client_idstringOIDC
client_secretstringOIDC; write only
idp_metadata_xmlstringSAML: the IdP's metadata XML (entity ID, SSO URL and signing certificates are read from it)
idp_metadata_urlstringSAML: an https URL to fetch the IdP's metadata from, once, now
idp_entity_idstringSAML: the IdP's entity ID (Issuer)
idp_sso_urlstringSAML: the IdP's HTTP-Redirect single sign-on URL
idp_certificatesarray of stringSAML: 1 or 2 PEM signing certificates (2 while rotating)
allow_idp_initiatedbooleanSAML: an IdP app tile starts an ordinary SP-initiated sign-in. Default false
domainsarray of string—
default_role"admin" | "developer" | "viewer"—
jitboolean—
enforceboolean—
scim_group_rolesobject | nullSCIM group display name -> role
200400401403
curl -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)#
DELETE
/v1/ssoscope admin · ownerOwner only: an owner member or the organization's own admin key; an admin member gets 403.
Responses200401403
curl -s -X DELETE https://api.kosa8.com/v1/sso \ -H "Authorization: Bearer $KOSA8_API_KEY"
Check a domain's DNS TXT record#
POST
/v1/sso/domains/{domain}/verifyscope admin · ownerOwner only: an owner member or the organization's own admin key; an admin member gets 403.
Parametersdomainrequiredpath · stringDomain
200401403
curl -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)#
GET
/v1/sso/scim-tokenscope admin · ownerOwner only: an owner member or the organization's own admin key; an admin member gets 403.
Responses200401403
curl -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#
POST
/v1/sso/scim-tokenscope admin · ownerOwner only: an owner member or the organization's own admin key; an admin member gets 403.
Responses201401403409
curl -s -X POST https://api.kosa8.com/v1/sso/scim-token \ -H "Authorization: Bearer $KOSA8_API_KEY"
Revoke the SCIM token#
DELETE
/v1/sso/scim-tokenscope admin · ownerOwner only: an owner member or the organization's own admin key; an admin member gets 403.
Responses200401403
curl -s -X DELETE https://api.kosa8.com/v1/sso/scim-token \ -H "Authorization: Bearer $KOSA8_API_KEY"