Resolve Platform User
Users
Resolve Platform User
Resolve a platform user to an Hitler user (service-to-service)
POST
Resolve Platform User
Overview
Resolves a platform user (Slack, Teams, WhatsApp) to an Hitler user and returns user information along with a short-lived JWT token for authenticated requests.Authentication
This endpoint uses API key authentication.Request Body
The platform identifier. One of:
slack, teams, whatsappThe user’s ID on the platform (e.g., Slack user ID like
U0123456789)The team/workspace ID on the platform (e.g., Slack workspace ID)
Response
The Hitler user ID (UUID)
The organization ID (UUID)
The user’s email address
The user’s display name
The user’s role:
employee, manager, or adminA short-lived JWT token (15 minutes) for making authenticated requests on behalf of the user
Example
Success Response
User Not Found
If the platform identity is not linked to any user, the endpoint returnsnull with a 200 status code.
Usage Notes
Token Lifecycle
The returned token has a 15-minute expiration. Bot services should:- Cache the token with its expiry time
- Re-resolve the user when the token expires
- Use the token for all API calls on behalf of the user
Security Considerations
- Never expose the API key to clients
- The returned token should only be used server-side
- Consider implementing additional rate limiting for this endpoint
- Monitor for unusual resolution patterns that could indicate abuse
Platform Identity Linking
Users must have their platform identity linked before they can be resolved. This is done through:- OAuth flow (automatic linking during Slack/Teams login)
- Admin portal (manual linking by organization admins)
- API call to
POST /api/users/:id/identities