/sessionPublicCreate Session
Sign in. The console holds the returned token and sends it as a bearer.
Operation ID create_session_session_post
Parameters
No parameters.
Responses
- 200
- Session
- Successful Response
- 422
- HTTPValidationError
- Validation Error
Example request
curl -X POST 'http://localhost:8000/session' \
-H 'Content-Type: application/json' \
-d '{
"email": "person@example.com",
"password": "<Password>",
"organization_id": "string"
}'Request body
SignInRequest
{
"email": "person@example.com",
"password": "<Password>",
"organization_id": "string"
}Example response
{
"access_token": "<Access Token>",
"expires_in": 1,
"user_id": "<User Id>",
"organization_id": "<Organization Id>",
"email": "<Email>",
"role": "<Role>",
"token_type": "Bearer"
}