Access token (JWT)
/
Отправить email со ссылко...
Документация внутреннего API Felmee (0.0.2)
Общий формат ответа для всех REST endpoints:
{
"success": true,
"message": "...",
"codeError": null,
"data": {}
}- Productionhttps://felmee.com/api/auth/phone/send/otp
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://felmee.com/api/auth/phone/send/otp \
-H 'Content-Type: application/json' \
-H 'captcha-token: string' \
-d '{
"recipient": "+79991234567"
}'Response
application/json
{ "success": true, "message": "OTP code sent successfully", "codeError": null, "data": null }
- Productionhttps://felmee.com/api/auth/phone/login
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://felmee.com/api/auth/phone/login \
-H 'Content-Type: application/json' \
-d '{
"phone": "+79991234567",
"otp": "123456"
}'Response
application/json
{ "success": true, "message": "The authorization process has been completed successfully!", "codeError": null, "data": { "JWT": "<access_token>", "RT": "<refresh_token>" } }
- Productionhttps://felmee.com/api/auth/email/send/login-link
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://felmee.com/api/auth/email/send/login-link \
-H 'Content-Type: application/json' \
-H 'captcha-token: string' \
-d '{
"recipient": "user@example.com"
}'Response
application/json
{ "success": true, "message": "If an account with this email exists, we will send a login link to this address.", "codeError": null, "data": null }
- Productionhttps://felmee.com/api/auth/email/send/otp
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://felmee.com/api/auth/email/send/otp \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'captcha-token: string' \
-d '{
"recipient": "user@example.com"
}'Response
application/json
{ "success": true, "message": "If the address is available for binding, we will send a code to it.", "codeError": null, "data": null }
- Productionhttps://felmee.com/api/auth/email/add
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://felmee.com/api/auth/email/add \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"email": "user@example.com",
"otp": "123456"
}'Response
application/json
{ "success": true, "message": "Email successfully added!", "codeError": null, "data": null }
- Productionhttps://felmee.com/api/auth/refresh-token
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://felmee.com/api/auth/refresh-token \
-H 'RT: YOUR_API_KEY_HERE'Response
application/json
{ "success": true, "message": "Token refreshed successfully", "codeError": null, "data": { "JWT": "<new_access_token>", "RT": "<new_refresh_token>" } }