List User Events
Changed onRetrieves a list of "events" generated by the User on Vercel. Events are generated when the User performs a particular action, such as logging in, creating a deployment, and joining a Team (just to name a few). When the teamId parameter is supplied, then the events that are returned will be in relation to the Team that was specified.
Request
- Base URL: https://api.vercel.com
- URL: https://api.vercel.com/v3/events
- Auth: HTTP bearer
Query parameters
Maximum number of items which may be returned.
Timestamp to only include items created since then.
Timestamp to only include items created until then.
Comma-delimited list of event "types" to filter the results by.
Deprecated. Use principalId instead. If principalId and userId both exist, principalId will be used.
When retrieving events for a Team, the principalId parameter may be specified to filter events generated by a specific principal.
Comma-delimited list of project IDs to filter the results by.
Filters events to those associated with a specific entity (matched against payload.id). For example, a connector ID.
When set to true, the response will include the payload field for each event.
The Team identifier to perform the request on behalf of.
The Team slug to perform the request on behalf of.
Response
Successful response.
Example response
{
"events": [
{
"categories": [
"deployment"
],
"createdAt": 1632859321020,
"entities": [
{
"end": 3,
"type": "author"
}
],
"id": "uev_bfmMjiMnXfnPbT97dGdpJbCN",
"payload": {
"created": "2021-02-10T13:11:49.180Z",
"createdAt": 1609492210000,
"createdBy": "2qDDuGFTWXBLDNnqZfWPDp1A",
"deletedAt": 1609492210000,
"deletedBy": "2qDDuGFTWXBLDNnqZfWPDp1A",
"id": "env_XCG7t7AIHuO2SBA8667zNUiM",
"key": "my-api-key",
"ownerId": "team_LLHUOMOoDlqOp8wPE4kFo9pE",
"projectId": [
"prj_2WjyKQmM8ZnGcJsPWMrHRHrE",
"prj_2WjyKQmM8ZnGcJsPWMrasEFg"
],
"target": [
"production"
],
"type": "encrypted",
"updatedAt": 1609492210000,
"updatedBy": "2qDDuGFTWXBLDNnqZfWPDp1A"
},
"text": "You logged in via GitHub",
"type": "login",
"userId": "zTuNVUXEAvvnNN3IaqinkyMw"
}
]
}Changes
- warning
added the new
project-git-credential-attestation-createdenum value to the//response property for the response status - warning
added the new
project-git-credential-attestation-deletedenum value to the//response property for the response status - warning
added the new
project-git-credential-grant-attestation-revokedenum value to the//response property for the response status - warning
added the new
project-git-credential-grant-attestedenum value to the//response property for the response status
- warning
- breaking
added
subschema #10to the//response propertyoneOflist for the response status - warning
added the new
messageboard-project-channel-createdenum value to the//response property for the response status - warning
added the new
messageboard-project-private-channel-createdenum value to the//response property for the response status
- breaking