Access
Preview

Ask to join an organization

Only for an organization that verified the domain of the caller's verified email. Its Owners see the

POST
/me/join-requests
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

application/json
  1. body
organizationId*string
Lengthlength <= 128

Response Body

The request.

application/json
  1. response
id*string
Formatuuid
userId?string

Left out for a request forwarded for someone with no account yet. Approving it sends an invitation to the email instead of adding a member.

note?string

What the person wrote on the request form, for a forwarded request.

name*string
email*string
avatarUrl?string
source*JoinRequestSource

suggested: from the Welcome page after sign-up. request-access: from the hosted request form. admin-forward: forwarded by Wardn Admin for someone with no account yet.

Value in"suggested""request-access""admin-forward"
requestedAt*string
Formatdate-time
Example Request
curl -X POST 'https://wardn.example.com/api/v1/me/join-requests' \  -H 'Content-Type: application/json' \  -d '{  "organizationId": "string"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "userId": "string",  "note": "string",  "name": "string",  "email": "string",  "avatarUrl": "string",  "source": "suggested",  "requestedAt": "2019-08-24T14:15:22Z"}