Search Events​
Returns a list of the possible event types in ZITADEL. This is used to filter the event types in the list events request.
Request Body required
Sequence represents the order of events. It's always counting. If asc is false, the sequence is used as lesser than filter. If asc is true sequence is used as greater than filter. If the sequence is 0 the field is ignored.
Maximum amount of events returned.
default is descending sorting order
The types are filtered by 'or' and must match the type exactly.
Use from instead.
range object
If asc is false, the events returned are older than the UTC from date. If asc is true, the events returned are younger than from.
Request Body required
Sequence represents the order of events. It's always counting. If asc is false, the sequence is used as lesser than filter. If asc is true sequence is used as greater than filter. If the sequence is 0 the field is ignored.
Maximum amount of events returned.
default is descending sorting order
The types are filtered by 'or' and must match the type exactly.
Use from instead.
range object
If asc is false, the events returned are older than the UTC from date. If asc is true, the events returned are younger than from.
Request Body required
Sequence represents the order of events. It's always counting. If asc is false, the sequence is used as lesser than filter. If asc is true sequence is used as greater than filter. If the sequence is 0 the field is ignored.
Maximum amount of events returned.
default is descending sorting order
The types are filtered by 'or' and must match the type exactly.
Use from instead.
range object
If asc is false, the events returned are older than the UTC from date. If asc is true, the events returned are younger than from.
- 200
- 403
- 404
- default
A successful response.
Schema
events object[]
{
"events": [
{
"editor": {
"userId": "165617389845094785",
"displayName": "Minnie Mouse",
"service": "Management-API"
},
"aggregate": {
"id": "165617850743094785",
"type": {
"type": "user",
"localized": {
"key": "string",
"localizedMessage": "string"
}
},
"resourceOwner": "165617850930497249"
},
"sequence": "string",
"creationDate": "2019-04-01T08:45:00.000000Z",
"payload": {
"firstName": "Gigi",
"lastName": "Giraffe",
"userName": "gigi@zitadel.com",
"displayName": "Gigi"
},
"type": {
"type": "user.human.added",
"localized": {
"key": "string",
"localizedMessage": "string"
}
}
}
]
}
Schema
events object[]
{
"events": [
{
"editor": {
"userId": "165617389845094785",
"displayName": "Minnie Mouse",
"service": "Management-API"
},
"aggregate": {
"id": "165617850743094785",
"type": {
"type": "user",
"localized": {
"key": "string",
"localizedMessage": "string"
}
},
"resourceOwner": "165617850930497249"
},
"sequence": "string",
"creationDate": "2019-04-01T08:45:00.000000Z",
"payload": {
"firstName": "Gigi",
"lastName": "Giraffe",
"userName": "gigi@zitadel.com",
"displayName": "Gigi"
},
"type": {
"type": "user.human.added",
"localized": {
"key": "string",
"localizedMessage": "string"
}
}
}
]
}
Schema
events object[]
{
"events": [
{
"editor": {
"userId": "165617389845094785",
"displayName": "Minnie Mouse",
"service": "Management-API"
},
"aggregate": {
"id": "165617850743094785",
"type": {
"type": "user",
"localized": {
"key": "string",
"localizedMessage": "string"
}
},
"resourceOwner": "165617850930497249"
},
"sequence": "string",
"creationDate": "2019-04-01T08:45:00.000000Z",
"payload": {
"firstName": "Gigi",
"lastName": "Giraffe",
"userName": "gigi@zitadel.com",
"displayName": "Gigi"
},
"type": {
"type": "user.human.added",
"localized": {
"key": "string",
"localizedMessage": "string"
}
}
}
]
}
Returned when the user does not have permission to access the resource.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Returned when the resource does not exist.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
POST /events/_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 -L -X POST 'https://$CUSTOM-DOMAIN/admin/v1/events/_search' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sequence": "2",
"limit": 20,
"asc": true,
"editorUserId": "69629023906488334",
"eventTypes": [
"user.human.added",
"user.machine"
],
"aggregateId": "69629023906488334",
"aggregateTypes": "user",
"resourceOwner": "69629023906488334",
"creationDate": "2019-04-01T08:45:00.000000Z",
"range": {
"since": "2019-04-01T08:45:00.000000Z",
"until": "2019-04-01T08:45:00.000000Z"
},
"from": "2019-04-01T08:45:00.000000Z"
}'
curl -L -X POST 'https://$CUSTOM-DOMAIN/admin/v1/events/_search' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sequence": "2",
"limit": 20,
"asc": true,
"editorUserId": "69629023906488334",
"eventTypes": [
"user.human.added",
"user.machine"
],
"aggregateId": "69629023906488334",
"aggregateTypes": "user",
"resourceOwner": "69629023906488334",
"creationDate": "2019-04-01T08:45:00.000000Z",
"range": {
"since": "2019-04-01T08:45:00.000000Z",
"until": "2019-04-01T08:45:00.000000Z"
},
"from": "2019-04-01T08:45:00.000000Z"
}'
curl -L -X POST 'https://$CUSTOM-DOMAIN/admin/v1/events/_search' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sequence": "2",
"limit": 20,
"asc": true,
"editorUserId": "69629023906488334",
"eventTypes": [
"user.human.added",
"user.machine"
],
"aggregateId": "69629023906488334",
"aggregateTypes": "user",
"resourceOwner": "69629023906488334",
"creationDate": "2019-04-01T08:45:00.000000Z",
"range": {
"since": "2019-04-01T08:45:00.000000Z",
"until": "2019-04-01T08:45:00.000000Z"
},
"from": "2019-04-01T08:45:00.000000Z"
}'
curl -L -X POST 'https://$CUSTOM-DOMAIN/admin/v1/events/_search' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sequence": "2",
"limit": 20,
"asc": true,
"editorUserId": "69629023906488334",
"eventTypes": [
"user.human.added",
"user.machine"
],
"aggregateId": "69629023906488334",
"aggregateTypes": "user",
"resourceOwner": "69629023906488334",
"creationDate": "2019-04-01T08:45:00.000000Z",
"range": {
"since": "2019-04-01T08:45:00.000000Z",
"until": "2019-04-01T08:45:00.000000Z"
},
"from": "2019-04-01T08:45:00.000000Z"
}'
curl -L -X POST 'https://$CUSTOM-DOMAIN/admin/v1/events/_search' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sequence": "2",
"limit": 20,
"asc": true,
"editorUserId": "69629023906488334",
"eventTypes": [
"user.human.added",
"user.machine"
],
"aggregateId": "69629023906488334",
"aggregateTypes": "user",
"resourceOwner": "69629023906488334",
"creationDate": "2019-04-01T08:45:00.000000Z",
"range": {
"since": "2019-04-01T08:45:00.000000Z",
"until": "2019-04-01T08:45:00.000000Z"
},
"from": "2019-04-01T08:45:00.000000Z"
}'
curl -L -X POST 'https://$CUSTOM-DOMAIN/admin/v1/events/_search' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sequence": "2",
"limit": 20,
"asc": true,
"editorUserId": "69629023906488334",
"eventTypes": [
"user.human.added",
"user.machine"
],
"aggregateId": "69629023906488334",
"aggregateTypes": "user",
"resourceOwner": "69629023906488334",
"creationDate": "2019-04-01T08:45:00.000000Z",
"range": {
"since": "2019-04-01T08:45:00.000000Z",
"until": "2019-04-01T08:45:00.000000Z"
},
"from": "2019-04-01T08:45:00.000000Z"
}'
curl -L -X POST 'https://$CUSTOM-DOMAIN/admin/v1/events/_search' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sequence": "2",
"limit": 20,
"asc": true,
"editorUserId": "69629023906488334",
"eventTypes": [
"user.human.added",
"user.machine"
],
"aggregateId": "69629023906488334",
"aggregateTypes": "user",
"resourceOwner": "69629023906488334",
"creationDate": "2019-04-01T08:45:00.000000Z",
"range": {
"since": "2019-04-01T08:45:00.000000Z",
"until": "2019-04-01T08:45:00.000000Z"
},
"from": "2019-04-01T08:45:00.000000Z"
}'
curl -L -X POST 'https://$CUSTOM-DOMAIN/admin/v1/events/_search' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sequence": "2",
"limit": 20,
"asc": true,
"editorUserId": "69629023906488334",
"eventTypes": [
"user.human.added",
"user.machine"
],
"aggregateId": "69629023906488334",
"aggregateTypes": "user",
"resourceOwner": "69629023906488334",
"creationDate": "2019-04-01T08:45:00.000000Z",
"range": {
"since": "2019-04-01T08:45:00.000000Z",
"until": "2019-04-01T08:45:00.000000Z"
},
"from": "2019-04-01T08:45:00.000000Z"
}'
curl -L -X POST 'https://$CUSTOM-DOMAIN/admin/v1/events/_search' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sequence": "2",
"limit": 20,
"asc": true,
"editorUserId": "69629023906488334",
"eventTypes": [
"user.human.added",
"user.machine"
],
"aggregateId": "69629023906488334",
"aggregateTypes": "user",
"resourceOwner": "69629023906488334",
"creationDate": "2019-04-01T08:45:00.000000Z",
"range": {
"since": "2019-04-01T08:45:00.000000Z",
"until": "2019-04-01T08:45:00.000000Z"
},
"from": "2019-04-01T08:45:00.000000Z"
}'