Accept invite REST API
POST
/api/auth/accept-invite
const url = 'https://hitkeep.com/api/auth/accept-invite';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"password":"example","token":"example"}'};
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://hitkeep.com/api/auth/accept-invite \ --header 'Content-Type: application/json' \ --data '{ "password": "example", "token": "example" }'Accepts a team invite. New invite-created users provide a password and receive a session cookie; existing users must sign in first and can accept with the token only.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
password
string
token
required
string
Examplegenerated
{ "password": "example", "token": "example"}Responses
Section titled “Responses”Login response
Media typeapplication/json
object
challenge_token
string
factors
Array<string>
passkey
object
key
additional properties
any
status
string
Example
{ "factors": [ "totp" ]}Invalid or expired link
Media typeapplication/json
object
message
string
Examplegenerated
{ "message": "example"}Sign in to accept this invitation
Media typeapplication/json
object
message
string
Examplegenerated
{ "message": "example"}Invite cannot be accepted
Media typeapplication/json
object
message
string
Examplegenerated
{ "message": "example"}