Invite a user to the organization
POST
/organizations/{id}/members
const url = 'https://api.krakenkey.io/organizations/example/members';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"email":"alice@example.com","role":"admin"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.krakenkey.io/organizations/example/members \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "email": "alice@example.com", "role": "admin" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Organization UUID
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
email
required
Email address of the user to invite (must already exist in the system)
string
Example
alice@example.comrole
Role to assign to the invited user
string
Responses
Section titled “Responses”Member invited
Organization or user not found
User already in another org