Company Membership
Authorizations
x-api-keystringRequired
Company secret API key. The backend also supports passing this in the Authorization header as Bearer <key> or in the apiKey query param.
Body
emailstring · emailRequired
User email used to find or create the user for this company.
first_namestringOptional
User first name (used only when creating a new user).
last_namestringOptional
User last name (used only when creating a new user).
plan_uuidstring · uuidOptional
Plan UUID. Required when type is subscribe.
typestring · enumRequiredPossible values:
Membership operation type.
Responses
200
Membership updated successfully
application/json
successbooleanOptionalExample:
truemessagestringOptionalExample:
Membership updated successfullydatastringOptionalExample:
success400
Missing or invalid input (e.g. email missing)
application/json
401
Invalid or missing API key
application/json
404
Plan not found (when type=subscribe and plan_uuid is invalid)
application/json
409
Email already exists for another company
application/json
500
Internal server error
application/json
post
/company/membershipLast updated