List executions​
List all matching executions. By default, we will return all executions of your instance. Make sure to include a limit and sorting for pagination.
application/json
application/grpc
application/grpc-web+proto
Request Body required
query object
queries object[]
Request Body required
query object
queries object[]
Request Body required
query object
queries object[]
Responses
- 200
- 400
- 403
- 404
- default
A list of all executions matching the query
application/json
application/grpc
application/grpc-web+proto
Schema
Example (from schema)
Schema
details object
result object[]
{
"details": {
"totalResult": "2",
"processedSequence": "267831",
"timestamp": "2024-04-08T09:12:36.056Z"
},
"result": [
{
"executionId": "request.zitadel.session.v2beta.SessionService",
"details": {
"sequence": "2",
"changeDate": "2024-04-08T09:12:36.056Z",
"resourceOwner": "69629023906488334"
},
"targets": [
"string"
],
"includes": [
"string"
]
}
]
}
Schema
Example (from schema)
Schema
details object
result object[]
{
"details": {
"totalResult": "2",
"processedSequence": "267831",
"timestamp": "2024-04-08T09:12:36.057Z"
},
"result": [
{
"executionId": "request.zitadel.session.v2beta.SessionService",
"details": {
"sequence": "2",
"changeDate": "2024-04-08T09:12:36.057Z",
"resourceOwner": "69629023906488334"
},
"targets": [
"string"
],
"includes": [
"string"
]
}
]
}
Schema
Example (from schema)
Schema
details object
result object[]
{
"details": {
"totalResult": "2",
"processedSequence": "267831",
"timestamp": "2024-04-08T09:12:36.057Z"
},
"result": [
{
"executionId": "request.zitadel.session.v2beta.SessionService",
"details": {
"sequence": "2",
"changeDate": "2024-04-08T09:12:36.057Z",
"resourceOwner": "69629023906488334"
},
"targets": [
"string"
],
"includes": [
"string"
]
}
]
}
invalid list query
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 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 /v3alpha/executions/search
Authorization
name: OAuth2type: oauth2scopes:openid,urn:zitadel:iam:org:project:id:zitadel:aud
flows: { "authorizationCode": { "authorizationUrl": "$CUSTOM-DOMAIN/oauth/v2/authorize", "tokenUrl": "$CUSTOM-DOMAIN/oauth/v2/token", "scopes": { "openid": "openid", "urn:zitadel:iam:org:project:id:zitadel:aud": "urn:zitadel:iam:org:project:id:zitadel:aud" } } }
Request
Request
curl / cURL
curl -L -X POST 'https://$CUSTOM-DOMAIN/v3alpha/executions/search' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"query": {
"offset": "0",
"limit": 100,
"asc": true
},
"queries": [
{
"inConditionsQuery": {
"conditions": [
{
"request": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"response": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"function": "string",
"event": {
"event": "user.human.added",
"group": "user.human",
"all": true
}
}
]
},
"executionTypeQuery": {
"executionType": "EXECUTION_TYPE_UNSPECIFIED"
},
"targetQuery": {
"targetId": "69629023906488334"
},
"includeQuery": {
"include": "request.zitadel.session.v2beta.SessionService"
}
}
]
}'
python / requests
curl -L -X POST 'https://$CUSTOM-DOMAIN/v3alpha/executions/search' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"query": {
"offset": "0",
"limit": 100,
"asc": true
},
"queries": [
{
"inConditionsQuery": {
"conditions": [
{
"request": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"response": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"function": "string",
"event": {
"event": "user.human.added",
"group": "user.human",
"all": true
}
}
]
},
"executionTypeQuery": {
"executionType": "EXECUTION_TYPE_UNSPECIFIED"
},
"targetQuery": {
"targetId": "69629023906488334"
},
"includeQuery": {
"include": "request.zitadel.session.v2beta.SessionService"
}
}
]
}'
go / native
curl -L -X POST 'https://$CUSTOM-DOMAIN/v3alpha/executions/search' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"query": {
"offset": "0",
"limit": 100,
"asc": true
},
"queries": [
{
"inConditionsQuery": {
"conditions": [
{
"request": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"response": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"function": "string",
"event": {
"event": "user.human.added",
"group": "user.human",
"all": true
}
}
]
},
"executionTypeQuery": {
"executionType": "EXECUTION_TYPE_UNSPECIFIED"
},
"targetQuery": {
"targetId": "69629023906488334"
},
"includeQuery": {
"include": "request.zitadel.session.v2beta.SessionService"
}
}
]
}'
nodejs / axios
curl -L -X POST 'https://$CUSTOM-DOMAIN/v3alpha/executions/search' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"query": {
"offset": "0",
"limit": 100,
"asc": true
},
"queries": [
{
"inConditionsQuery": {
"conditions": [
{
"request": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"response": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"function": "string",
"event": {
"event": "user.human.added",
"group": "user.human",
"all": true
}
}
]
},
"executionTypeQuery": {
"executionType": "EXECUTION_TYPE_UNSPECIFIED"
},
"targetQuery": {
"targetId": "69629023906488334"
},
"includeQuery": {
"include": "request.zitadel.session.v2beta.SessionService"
}
}
]
}'
ruby / Net::HTTP
curl -L -X POST 'https://$CUSTOM-DOMAIN/v3alpha/executions/search' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"query": {
"offset": "0",
"limit": 100,
"asc": true
},
"queries": [
{
"inConditionsQuery": {
"conditions": [
{
"request": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"response": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"function": "string",
"event": {
"event": "user.human.added",
"group": "user.human",
"all": true
}
}
]
},
"executionTypeQuery": {
"executionType": "EXECUTION_TYPE_UNSPECIFIED"
},
"targetQuery": {
"targetId": "69629023906488334"
},
"includeQuery": {
"include": "request.zitadel.session.v2beta.SessionService"
}
}
]
}'
csharp / RestSharp
curl -L -X POST 'https://$CUSTOM-DOMAIN/v3alpha/executions/search' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"query": {
"offset": "0",
"limit": 100,
"asc": true
},
"queries": [
{
"inConditionsQuery": {
"conditions": [
{
"request": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"response": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"function": "string",
"event": {
"event": "user.human.added",
"group": "user.human",
"all": true
}
}
]
},
"executionTypeQuery": {
"executionType": "EXECUTION_TYPE_UNSPECIFIED"
},
"targetQuery": {
"targetId": "69629023906488334"
},
"includeQuery": {
"include": "request.zitadel.session.v2beta.SessionService"
}
}
]
}'
php / cURL
curl -L -X POST 'https://$CUSTOM-DOMAIN/v3alpha/executions/search' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"query": {
"offset": "0",
"limit": 100,
"asc": true
},
"queries": [
{
"inConditionsQuery": {
"conditions": [
{
"request": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"response": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"function": "string",
"event": {
"event": "user.human.added",
"group": "user.human",
"all": true
}
}
]
},
"executionTypeQuery": {
"executionType": "EXECUTION_TYPE_UNSPECIFIED"
},
"targetQuery": {
"targetId": "69629023906488334"
},
"includeQuery": {
"include": "request.zitadel.session.v2beta.SessionService"
}
}
]
}'
java / OkHttp
curl -L -X POST 'https://$CUSTOM-DOMAIN/v3alpha/executions/search' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"query": {
"offset": "0",
"limit": 100,
"asc": true
},
"queries": [
{
"inConditionsQuery": {
"conditions": [
{
"request": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"response": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"function": "string",
"event": {
"event": "user.human.added",
"group": "user.human",
"all": true
}
}
]
},
"executionTypeQuery": {
"executionType": "EXECUTION_TYPE_UNSPECIFIED"
},
"targetQuery": {
"targetId": "69629023906488334"
},
"includeQuery": {
"include": "request.zitadel.session.v2beta.SessionService"
}
}
]
}'
powershell / RestMethod
curl -L -X POST 'https://$CUSTOM-DOMAIN/v3alpha/executions/search' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"query": {
"offset": "0",
"limit": 100,
"asc": true
},
"queries": [
{
"inConditionsQuery": {
"conditions": [
{
"request": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"response": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"function": "string",
"event": {
"event": "user.human.added",
"group": "user.human",
"all": true
}
}
]
},
"executionTypeQuery": {
"executionType": "EXECUTION_TYPE_UNSPECIFIED"
},
"targetQuery": {
"targetId": "69629023906488334"
},
"includeQuery": {
"include": "request.zitadel.session.v2beta.SessionService"
}
}
]
}'