Accept invitation
This allows someone to accept an invitation. This activates the account and returns a JSON Web Token, just like authenticating.
Request
Path parameter | Value |
---|---|
code |
The unique code for the invitation you’d like to accept. |
Examples
POST /v1/invitations/o3bh0wdhjRo HTTP/1.1
Host: api.thefifthworld.com
Response
If you have provided a valid invitation code, this endpoint responds with a 200
HTTP
status and a JSON Web Token, authenticating you. We must make sure
to encourage new members in the strongest possible terms to set up a passphrase right away.
If the user does not set a passphrase, she may lose the ability to access her new account when this
JSON Web Token expires.
Example
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c