Authentication
Authentication
POST /api/v1/login
Create Login
Request Body
Type: Credentials
| Field | Type | Description |
|---|---|---|
password | string | |
username | string | |
device_token | string | Trusted device token for OTP bypass |
Response
Type: LoginReply
| Field | Type | Description |
|---|---|---|
id | uuid.UUID | |
username | string | |
name | string | |
email | string | |
firstname | string | |
apikey | string |
Example
curl -X POST \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{}' \
https://api.seeme.ai/api/v1/loginPOST /api/v1/logout
Create Logout
Example
curl -X POST \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
https://api.seeme.ai/api/v1/logoutPOST /api/v1/register
Create Registration
Request Body
Type: Registration
| Field | Type | Description |
|---|---|---|
username | string | |
email | string | |
name | string | |
firstname | string | |
password | string |
Response
Type: RegistrationError
| Field | Type | Description |
|---|---|---|
message | string | |
severity | string | |
registration | Registration |
Example
curl -X POST \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{}' \
https://api.seeme.ai/api/v1/registerPOST /api/v1/resetpassword
Create Reset Password
Request Body
Type: ResetPasswordRequest
| Field | Type | Description |
|---|---|---|
login | string |
Response
Type: ResetPasswordRequest
| Field | Type | Description |
|---|---|---|
login | string |
Example
curl -X POST \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{}' \
https://api.seeme.ai/api/v1/resetpasswordGET /api/v1/resetpassword/{user_id}/{reset_token}
Get Reset Password
Parameters
| Name | In | Type | Required |
|---|---|---|---|
user_id | path | string | true |
reset_token | path | string | true |
Example
curl -X GET \
-H "Authorization: Bearer <token>" \
https://api.seeme.ai/api/v1/resetpassword/{user_id}/{reset_token}PUT /api/v1/resetpassword/{user_id}/{reset_token}
Update New Password
Parameters
| Name | In | Type | Required |
|---|---|---|---|
user_id | path | string | true |
reset_token | path | string | true |
Request Body
Type: NewPasswordRequest
| Field | Type | Description |
|---|---|---|
user_id | string | |
reset_token | string | |
password | string | |
repeat_password | string | |
message | string |
Response
Type: NewPasswordRequest
| Field | Type | Description |
|---|---|---|
user_id | string | |
reset_token | string | |
password | string | |
repeat_password | string | |
message | string |
Example
curl -X PUT \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{}' \
https://api.seeme.ai/api/v1/resetpassword/{user_id}/{reset_token}