Create a new session
Create a new session. A token will be returned, which is required for further updates of the session.
- application/json
- application/grpc
- application/grpc-web+proto
Request Body required
checks object
metadata object
Request Body required
checks object
metadata object
Request Body required
checks object
metadata object
Responses
- 200
- 403
- 404
- default
OK
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details object
- sessionId string
"id of the session"
- sessionToken string
"token of the session, which is required for further updates of the session or the request other resources"
{
"details": {
"sequence": "2",
"changeDate": "2023-05-11",
"resourceOwner": "69629023906488334"
},
"sessionId": "d654e6ba-70a3-48ef-a95d-37c8d8a7901a",
"sessionToken": "string"
}
- Schema
- Example (from schema)
Schema
details object
- sessionId string
"id of the session"
- sessionToken string
"token of the session, which is required for further updates of the session or the request other resources"
{
"details": {
"sequence": "2",
"changeDate": "2023-05-11",
"resourceOwner": "69629023906488334"
},
"sessionId": "d654e6ba-70a3-48ef-a95d-37c8d8a7901a",
"sessionToken": "string"
}
- Schema
- Example (from schema)
Schema
details object
- sessionId string
"id of the session"
- sessionToken string
"token of the session, which is required for further updates of the session or the request other resources"
{
"details": {
"sequence": "2",
"changeDate": "2023-05-11",
"resourceOwner": "69629023906488334"
},
"sessionId": "d654e6ba-70a3-48ef-a95d-37c8d8a7901a",
"sessionToken": "string"
}
Returned when the user does not have permission to access the resource.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Returned when the resource does not exist.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
POST /v2alpha/sessions
Request
Request
curl -L -X POST 'https://$ZITADEL_DOMAIN/v2alpha/sessions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"checks": {
"user": {
"userId": "d654e6ba-70a3-48ef-a95d-37c8d8a7901a",
"loginName": "mini@mouse.com"
},
"password": {
"password": "V3ryS3cure!"
}
},
"metadata": {}
}'
curl -L -X POST 'https://$ZITADEL_DOMAIN/v2alpha/sessions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"checks": {
"user": {
"userId": "d654e6ba-70a3-48ef-a95d-37c8d8a7901a",
"loginName": "mini@mouse.com"
},
"password": {
"password": "V3ryS3cure!"
}
},
"metadata": {}
}'
curl -L -X POST 'https://$ZITADEL_DOMAIN/v2alpha/sessions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"checks": {
"user": {
"userId": "d654e6ba-70a3-48ef-a95d-37c8d8a7901a",
"loginName": "mini@mouse.com"
},
"password": {
"password": "V3ryS3cure!"
}
},
"metadata": {}
}'
curl -L -X POST 'https://$ZITADEL_DOMAIN/v2alpha/sessions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"checks": {
"user": {
"userId": "d654e6ba-70a3-48ef-a95d-37c8d8a7901a",
"loginName": "mini@mouse.com"
},
"password": {
"password": "V3ryS3cure!"
}
},
"metadata": {}
}'
curl -L -X POST 'https://$ZITADEL_DOMAIN/v2alpha/sessions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"checks": {
"user": {
"userId": "d654e6ba-70a3-48ef-a95d-37c8d8a7901a",
"loginName": "mini@mouse.com"
},
"password": {
"password": "V3ryS3cure!"
}
},
"metadata": {}
}'
curl -L -X POST 'https://$ZITADEL_DOMAIN/v2alpha/sessions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"checks": {
"user": {
"userId": "d654e6ba-70a3-48ef-a95d-37c8d8a7901a",
"loginName": "mini@mouse.com"
},
"password": {
"password": "V3ryS3cure!"
}
},
"metadata": {}
}'
curl -L -X POST 'https://$ZITADEL_DOMAIN/v2alpha/sessions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"checks": {
"user": {
"userId": "d654e6ba-70a3-48ef-a95d-37c8d8a7901a",
"loginName": "mini@mouse.com"
},
"password": {
"password": "V3ryS3cure!"
}
},
"metadata": {}
}'