Get current user
GET
/v2/users/currentAuthorization
api_key AuthorizationBearer <token>
API key for authentication. Use format: Bearer YOUR_API_KEY
In: header
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v2/users/current"{
"id": "aTeX2Is22wHuODu0xdRB2tXd2H1No1qL",
"email": "john.doe@example.com",
"name": "John Doe",
"image": "https://example.com/user-avatar.jpg",
"banned": false
}{
"message": "Unauthorized",
"code": "UNAUTHORIZED",
"issues": []
}{
"message": "Forbidden",
"code": "FORBIDDEN",
"issues": []
}{
"message": "Not found",
"code": "NOT_FOUND",
"issues": []
}{
"message": "Request timeout",
"code": "TIMEOUT",
"issues": []
}{
"message": "Internal server error",
"code": "INTERNAL_SERVER_ERROR",
"issues": []
}How is this guide?
Remove sub-unit DELETE
Unlink a sub-unit from its parent. Neither unit is deleted. TofuPilot REST API reference with its parameters, response schema, and status codes.
List users GET
List users in your organization. For the user behind the key, use GET /v2/users/current. See its parameters, response schema, and status codes.