spacesByAccounts
Get Spaces grouped by their owner account, for a list of owner account IDs. Intended for service-to-service calls (e.g. spaces-embed-service) to bulk-resolve which Spaces each account owns. Each entry in the response corresponds to one input accountId, preserving the order of the input list. Accounts with no Spaces return an empty spaces list rather than being omitted.
A maximum of 50 accountIds may be provided per request; requests exceeding this limit are rejected with ACCOUNT_IDS_LIMIT_EXCEEDED.
An example of the request is as follows:
query {
spacesByAccounts(accountIds: ["acct-1", "acct-2"]) {
accountId
spaces {
id
name
theme {
logoUrl
}
}
}
}
spacesByAccounts(
accountIds: [ID!]!
): [SpacesByAccount!]
Arguments
spacesByAccounts.accountIds ● [ID!]! non-null scalar miscellaneous
Type
SpacesByAccount object catalog-service
Represents a grouping of Spaces owned by a single account.
Was this topic helpful?