--- title: "Create Session" description: "Create a new session for a given user. This will return a refresh token that can be used to impersonate the user." api: "POST /auth/sessions" --- ## Request The identifier of the user to create a session for. ## Response A successful request returns session credentials for user impersonation purposes, including a refresh token. ```bash cURL curl -X POST "https://api.stack-auth.com/auth/sessions" \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d '{"user_id": "USER_ID"}' ```