Better Auth in Rust
OpenAPI Reference

Organization

Organization endpoints for multi-tenant management, members, invitations, and RBAC.

create organization

POST
/organization/create

Response Body

curl -X POST "https://loading/organization/create"
Empty

update organization

POST
/organization/update

Response Body

curl -X POST "https://loading/organization/update"
Empty

delete organization

POST
/organization/delete

Response Body

curl -X POST "https://loading/organization/delete"
Empty

check slug

POST
/organization/check-slug

Response Body

curl -X POST "https://loading/organization/check-slug"
Empty

get full organization

GET
/organization/get-full-organization

Response Body

curl -X GET "https://loading/organization/get-full-organization"
Empty

set active organization

POST
/organization/set-active

Response Body

curl -X POST "https://loading/organization/set-active"
Empty

list organizations

GET
/organization/list

Response Body

curl -X GET "https://loading/organization/list"
Empty

list members

GET
/organization/list-members

Response Body

curl -X GET "https://loading/organization/list-members"
Empty

get active member

GET
/organization/get-active-member

Response Body

curl -X GET "https://loading/organization/get-active-member"
Empty

get active member role

GET
/organization/get-active-member-role

Response Body

curl -X GET "https://loading/organization/get-active-member-role"
Empty

update member role

POST
/organization/update-member-role

Response Body

curl -X POST "https://loading/organization/update-member-role"
Empty

remove member

POST
/organization/remove-member

Response Body

curl -X POST "https://loading/organization/remove-member"
Empty

leave organization

POST
/organization/leave

Response Body

curl -X POST "https://loading/organization/leave"
Empty

invite member

POST
/organization/invite-member

Response Body

curl -X POST "https://loading/organization/invite-member"
Empty

accept invitation

POST
/organization/accept-invitation

Response Body

curl -X POST "https://loading/organization/accept-invitation"
Empty

reject invitation

POST
/organization/reject-invitation

Response Body

curl -X POST "https://loading/organization/reject-invitation"
Empty

cancel invitation

POST
/organization/cancel-invitation

Response Body

curl -X POST "https://loading/organization/cancel-invitation"
Empty

get invitation

GET
/organization/get-invitation

Response Body

curl -X GET "https://loading/organization/get-invitation"
Empty

list invitations

GET
/organization/list-invitations

Response Body

curl -X GET "https://loading/organization/list-invitations"
Empty

list user invitations

GET
/organization/list-user-invitations

Response Body

curl -X GET "https://loading/organization/list-user-invitations"
Empty

has permission

POST
/organization/has-permission

Response Body

curl -X POST "https://loading/organization/has-permission"
Empty