Account
17 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.
The organization and the calling key#
GET
Responses/v1/meany key200401403
curl -s -X GET https://api.kosa8.com/v1/me \ -H "Authorization: Bearer $KOSA8_API_KEY"
Change your display name (a member's session or key; an org key gets 409 member_required)#
PATCH
JSON body/v1/meany keynamerequiredstring | nullMax length 100.
200400401403409
curl -s -X PATCH https://api.kosa8.com/v1/me \ -H "Authorization: Bearer $KOSA8_API_KEY" \ -H 'Content-Type: application/json' -d @body.json
Your profile: name, email, role, how you sign in, newsletter#
GET
Responses/v1/me/profileany key200401403409
curl -s -X GET https://api.kosa8.com/v1/me/profile \ -H "Authorization: Bearer $KOSA8_API_KEY"
Change your password; ends your sessions in other browsers and returns a fresh cookie#
POST
/v1/me/passwordany keyDashboard session only, never an API key. Five wrong current passwords in 15 minutes answer 429.
JSON bodycurrent_passwordrequiredstring—
new_passwordrequiredstringMax length 256.
sign_out_keysboolean—
200400401403409429
curl -s -X POST https://api.kosa8.com/v1/me/password \ -H "Authorization: Bearer $KOSA8_API_KEY" \ -H 'Content-Type: application/json' -d @body.json
End your dashboard sessions in every other browser#
POST
/v1/me/sign-out-othersany keyDashboard session only.
Responses200401403409
curl -s -X POST https://api.kosa8.com/v1/me/sign-out-others \ -H "Authorization: Bearer $KOSA8_API_KEY"
Your live CLI, desktop app and personal key sign-ins; revoke one with DELETE /v1/api-keys/{id}#
GET
Responses/v1/me/sessionsany key200401403409
curl -s -X GET https://api.kosa8.com/v1/me/sessions \ -H "Authorization: Bearer $KOSA8_API_KEY"
Subscribe to or leave the kosa8 weekly#
POST
JSON body/v1/me/newsletterany keysubscribedrequiredboolean—
200400401403409429502503
curl -s -X POST https://api.kosa8.com/v1/me/newsletter \ -H "Authorization: Bearer $KOSA8_API_KEY" \ -H 'Content-Type: application/json' -d @body.json
The rate card#
GET
Responses/v1/pricingpublic200
curl -s -X GET https://api.kosa8.com/v1/pricing
Whether self-serve sign-up is open#
GET
Responses/v1/signuppublic200
curl -s -X GET https://api.kosa8.com/v1/signup
Create an organization (the dashboard's sign-up form)#
POST
Responses/v1/signuppublic201400429
curl -s -X POST https://api.kosa8.com/v1/signup \ -H 'Content-Type: application/json' -d @body.json
Org settings#
GET
Responses/v1/settingsscope sandboxes:read200401403
curl -s -X GET https://api.kosa8.com/v1/settings \ -H "Authorization: Bearer $KOSA8_API_KEY"
Change default_region, default_template, sleep_after_s, placement, spending_cap_usd#
PATCH
JSON body/v1/settingsscope admindefault_regionstring | null—
default_templatestring | null—
sleep_after_sinteger—
placement"auto" | "own" | "shared"—
spending_cap_usdnumber | null—
200400401403
curl -s -X PATCH https://api.kosa8.com/v1/settings \ -H "Authorization: Bearer $KOSA8_API_KEY" \ -H 'Content-Type: application/json' -d @body.json
Whether this member has finished the dashboard tour (member: false for an API-key session)#
GET
Responses/v1/tourany key200401403
curl -s -X GET https://api.kosa8.com/v1/tour \ -H "Authorization: Bearer $KOSA8_API_KEY"
Mark the dashboard tour done or skipped, or reset it to show again#
POST
JSON body/v1/tourany keyactionrequired"done" | "skip" | "reset"—
200400401403409
curl -s -X POST https://api.kosa8.com/v1/tour \ -H "Authorization: Bearer $KOSA8_API_KEY" \ -H 'Content-Type: application/json' -d @body.json
Get started progress for this org#
GET
Responses/v1/onboardingany key200401403
curl -s -X GET https://api.kosa8.com/v1/onboarding \ -H "Authorization: Bearer $KOSA8_API_KEY"
Skip, resume or finish a Get started step#
POST
JSON body/v1/onboardingscope sandboxes:writeactionstring—
stepstring—
200401403
curl -s -X POST https://api.kosa8.com/v1/onboarding \ -H "Authorization: Bearer $KOSA8_API_KEY" \ -H 'Content-Type: application/json' -d @body.json
Record an allowed product event (referral_link_copied, moment_shown, moment_clicked); rate-limited#
POST
JSON body/v1/eventsany keynamerequiredstring—
momentstringmoment_shown and moment_clicked: the moment's id
200401403
curl -s -X POST https://api.kosa8.com/v1/events \ -H "Authorization: Bearer $KOSA8_API_KEY" \ -H 'Content-Type: application/json' -d @body.json