Перейти к содержимому

Accept an invite

Запрос

Public. Creates a member with the given email and password in the invite's company and logs them in: returns a session token and the new member's API key. If the invite names an email, only that email is accepted. One email can belong to one company only.

Путь
tokenstringобязательный
Телоapplication/jsonобязательный
emailstring, (email)обязательный
passwordstring, >= 8 charactersобязательный
curl -i -X POST \
  'https://b2b-app.lumowallet.io/_mock/apis/auth/invites/{token}/accept' \
  -H 'Content-Type: application/json' \
  -d '{
    "email": "[email protected]",
    "password": "stringst"
  }'

Ответы

Invite accepted

Телоapplication/json
companyobject(CompanyInfo)обязательный
tokenstringобязательный

Session token (JWT) of the new member

apiKeystringобязательный

API key of the new member

Пример:"lb2b_7d0e9c8b6a5f4e3d2c1b0a9f8e7d6c5b"
Ответ
{ "company": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "email": "[email protected]" }, "token": "string", "apiKey": "lb2b_7d0e9c8b6a5f4e3d2c1b0a9f8e7d6c5b" }