API Reference
CLI
Copy page
CLI authentication endpoints
Get CLI user info
Authorization
bearerAuth cookieAuth AuthorizationBearer <token>
Bearer token authentication. Use this for API clients and service-to-service communication. Set the Authorization header to "Bearer ".
In: header
better-auth.session_token<token>
Session-based authentication using HTTP-only cookies. Cookies are automatically sent by browsers. For server-side requests, include cookies with names starting with "better-auth." in the Cookie header.
In: cookie
Response Body
application/json
curl -X GET "https://api.pilot.inkeep.com/manage/api/cli/me"{
"organization": {
"id": "string",
"name": "string",
"role": "string",
"slug": "string"
},
"user": {
"email": "string",
"id": "string",
"name": "string"
}
}Empty
Empty