Skip to Content
Xeonr Developer Docs
API SpecificationProfiles

Get one product's tab on a profile

POST
/xeonr.profiles.v2.ProfileService/GetProfileTab

Returns the full page one product shows on a profile, as an ordered list of display blocks. Visibility follows GetProfile, and widgets the owner has hidden are absent.

params carries the selector state the page offers (for example a time window) and is forwarded to the product unchanged. Unknown products and products the person has never used answer NOT_FOUND, the same as an unknown handle, so nothing about what exists leaks. A product that is down answers UNAVAILABLE.

No authentication is required.

Header Parameters

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

handle?string

The handle, without the leading '@'.

Match^[A-Za-z0-9][A-Za-z0-9._-]{0,31}$
product?string

The product's slug.

Match^[a-z][a-z0-9-]{1,15}$
params?

Selector state (e.g. {"window": "1y"}), forwarded to the product.

Propertiesproperties <= 8
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://profiles-api.xeonr.io/xeonr.profiles.v2.ProfileService/GetProfileTab" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "stale": "false",
  "blocks": [
    "map[id:stats text:map[body:42.6 hours watched in the last 12 months.] title:Activity widgetKey:xmb.stats]"
  ]
}

Get a profile POST

Returns a person's public profile header and one overview digest per product that has something to show for them, looked up by handle (the person's Xeonr username, without the leading `@`). Profiles are public by default: a person who has never visited Xeonr Profiles still has a page, rendered from their Xeonr account. Their own overrides (display name, bio, visibility, hidden widgets) apply on top. Unknown handles and non-public profiles both answer `NOT_FOUND`, so existence is never disclosed. The profile's owner, if they present a bearer token, sees their own profile whatever its visibility, and `is_owner` and `visibility` are filled in for them only. Product digests are fetched live and in parallel. A product that does not answer is left out of `products` and `digests`; one that answers from a stale cache copy is marked `stale`. No authentication is required.

Run a product action from a profile page POST

Runs the action behind an action button on a profile page, such as a follow or a request, on behalf of the signed-in viewer. The viewer's subject, not the profile owner's, is forwarded to the product with the action id and its payload. This is the only authenticated method on the service. It needs a first-party signed-in session holding the `profiles:profile:read` scope; a token without it, or a delegated product token, is refused with `PERMISSION_DENIED`. Calls are limited to 10 a minute per viewer (`RESOURCE_EXHAUSTED`). The profile must be viewable by the caller and the product known, else `NOT_FOUND`; a product without actions answers `UNIMPLEMENTED`, and one that fails answers `UNAVAILABLE`. The response carries an optional toast `message` and `replace_blocks`, which replace blocks on the page that have the same `id`. **Required scopes:** `profiles:profile:read`