Auth
Get Public Config
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://loading/v1/auth/config"{
"allow_registration": true
}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"error": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests. Please try again later.",
"details": {
"retry_after": 60
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 429
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Get Invite Info
Query Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://loading/v1/auth/invite-info?token=string"{
"email": "string",
"valid": true
}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests. Please try again later.",
"details": {
"retry_after": 60
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 429
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Get Current User Info
Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://loading/v1/auth/me"{
"user_id": "string",
"email": "[email protected]",
"username": "string",
"full_name": "string",
"auth_provider": "string",
"is_active": true,
"is_verified": true,
"roles": [
"string"
],
"avatar_url": "string",
"bio": "string",
"timezone": "string",
"locale": "string",
"preferences": {},
"settings": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"last_login": "2019-08-24T14:15:22Z",
"default_workspace_id": "string"
}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests. Please try again later.",
"details": {
"retry_after": 60
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 429
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Register
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://loading/v1/auth/register" \ -H "Content-Type: application/json" \ -d '{ "email": "[email protected]", "username": "string", "password": "stringst" }'{
"access_token": "string",
"refresh_token": "string",
"token_type": "bearer",
"expires_in": 0,
"user": {
"user_id": "string",
"email": "[email protected]",
"username": "string",
"full_name": "string",
"auth_provider": "string",
"is_active": true,
"is_verified": true,
"roles": [
"string"
],
"avatar_url": "string",
"bio": "string",
"timezone": "string",
"locale": "string",
"preferences": {},
"settings": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"last_login": "2019-08-24T14:15:22Z",
"default_workspace_id": "string"
}
}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests. Please try again later.",
"details": {
"retry_after": 60
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 429
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Login
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://loading/v1/auth/login" \ -H "Content-Type: application/json" \ -d '{ "username": "string", "password": "string" }'{
"access_token": "string",
"refresh_token": "string",
"token_type": "bearer",
"expires_in": 0,
"user": {
"user_id": "string",
"email": "[email protected]",
"username": "string",
"full_name": "string",
"auth_provider": "string",
"is_active": true,
"is_verified": true,
"roles": [
"string"
],
"avatar_url": "string",
"bio": "string",
"timezone": "string",
"locale": "string",
"preferences": {},
"settings": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"last_login": "2019-08-24T14:15:22Z",
"default_workspace_id": "string"
}
}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests. Please try again later.",
"details": {
"retry_after": 60
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 429
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Logout
Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://loading/v1/auth/logout"null{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests. Please try again later.",
"details": {
"retry_after": 60
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 429
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Verify Email
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Verification token from email
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://loading/v1/auth/verify-email" \ -H "Content-Type: application/json" \ -d '{ "token": "string" }'null{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests. Please try again later.",
"details": {
"retry_after": 60
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 429
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Resend Verification
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://loading/v1/auth/resend-verification" \ -H "Content-Type: application/json" \ -d '{ "email": "[email protected]" }'null{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests. Please try again later.",
"details": {
"retry_after": 60
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 429
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Refresh Token
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://loading/v1/auth/refresh" \ -H "Content-Type: application/json" \ -d '{ "refresh_token": "string" }'{
"access_token": "string",
"refresh_token": "string",
"token_type": "bearer",
"expires_in": 0
}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests. Please try again later.",
"details": {
"retry_after": 60
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 429
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Switch Org
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://loading/v1/auth/switch-org" \ -H "Content-Type: application/json" \ -d '{ "org_id": "string" }'{
"access_token": "string",
"token_type": "bearer",
"expires_in": 0,
"org_id": "string"
}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests. Please try again later.",
"details": {
"retry_after": 60
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 429
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Forgot Password
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://loading/v1/auth/forgot-password" \ -H "Content-Type: application/json" \ -d '{ "email": "[email protected]" }'null{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests. Please try again later.",
"details": {
"retry_after": 60
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 429
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Reset Password
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://loading/v1/auth/reset-password" \ -H "Content-Type: application/json" \ -d '{ "token": "string", "new_password": "stringst" }'null{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests. Please try again later.",
"details": {
"retry_after": 60
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 429
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Get Profile
Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://loading/v1/auth/me/profile"{
"user_id": "string",
"email": "[email protected]",
"username": "string",
"full_name": "string",
"auth_provider": "string",
"is_active": true,
"is_verified": true,
"roles": [
"string"
],
"avatar_url": "string",
"bio": "string",
"timezone": "string",
"locale": "string",
"preferences": {},
"settings": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"last_login": "2019-08-24T14:15:22Z",
"default_workspace_id": "string",
"has_password": false
}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests. Please try again later.",
"details": {
"retry_after": 60
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 429
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Update Profile
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://loading/v1/auth/me/profile" \ -H "Content-Type: application/json" \ -d '{}'{
"user_id": "string",
"email": "[email protected]",
"username": "string",
"full_name": "string",
"auth_provider": "string",
"is_active": true,
"is_verified": true,
"roles": [
"string"
],
"avatar_url": "string",
"bio": "string",
"timezone": "string",
"locale": "string",
"preferences": {},
"settings": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"last_login": "2019-08-24T14:15:22Z",
"default_workspace_id": "string",
"has_password": false
}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests. Please try again later.",
"details": {
"retry_after": 60
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 429
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Change Password
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://loading/v1/auth/me/password" \ -H "Content-Type: application/json" \ -d '{ "current_password": "string", "new_password": "stringst" }'null{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests. Please try again later.",
"details": {
"retry_after": 60
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 429
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}