Skip to content

Look up actor display names

GET
/v1/actors/lookup

Resolves user IDs and/or API key IDs to their display names (email or label). Used by the console to render “Deleted by” attribution on message detail pages.

At least one of user_id or api_key_id must be provided. If neither is given, the endpoint returns 400.

Both parameters accept comma-separated lists for batch lookups (up to 100 total IDs). IDs that do not exist or belong to a different tenant are silently omitted from the response.

user_id
string

One or more Kratos identity IDs (comma-separated)

Example
01935abc-def0-7123-4567-890abcdef012
api_key_id
string

One or more API key IDs (comma-separated)

Example
key_abc123

Actor display names resolved

object
data
object
users

Map of Kratos identity ID to user email. Only present when user_id was requested.

object
key
additional properties
object
email
required
string
api_keys

Map of API key ID to key label. Only present when api_key_id was requested. Keys that exist but have no label are included with an empty string; keys not found or belonging to another tenant are omitted entirely.

object
key
additional properties
object
label
required
string
meta
object
request_id

Unique identifier for this request (useful for support)

string
Example
req_xyz123
Example
{
"data": {
"users": {
"01935abc-def0-7123-4567-890abcdef012": {
"email": "alice@example.com"
}
},
"api_keys": {
"key_abc123": {
"label": "Production Backend"
}
}
},
"meta": {
"request_id": "req_xyz123"
}
}

Invalid request

object
error
object
code

Machine-readable error code

string
Example
INVALID_REQUEST
message

Human-readable error message

string
Example
endpoint must be a valid HTTPS URL
meta
object
request_id

Unique identifier for this request (useful for support)

string
Example
req_xyz123
Examples

Endpoint not found

{
"error": {
"code": "ENDPOINT_NOT_FOUND",
"message": "endpoint not found"
},
"meta": {
"request_id": "req_xyz123"
}
}

Unauthorized - Invalid or missing API key

object
error
object
code

Machine-readable error code

string
Example
INVALID_REQUEST
message

Human-readable error message

string
Example
endpoint must be a valid HTTPS URL
meta
object
request_id

Unique identifier for this request (useful for support)

string
Example
req_xyz123
Example
{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
},
"meta": {
"request_id": "req_xyz123"
}
}

Internal server error

object
error
object
code

Machine-readable error code

string
Example
INVALID_REQUEST
message

Human-readable error message

string
Example
endpoint must be a valid HTTPS URL
meta
object
request_id

Unique identifier for this request (useful for support)

string
Example
req_xyz123
Example
{
"error": {
"code": "INTERNAL_ERROR",
"message": "An internal error occurred"
},
"meta": {
"request_id": "req_xyz123"
}
}
Personalize Examples

Enter your credentials to populate code examples throughout the docs.