Preview. This site is still being built. Features, prices and terms may change, and nothing here is a binding offer. Read the preview notice

Preview. Still being built; nothing here is a binding offer. Details

Profile data

7 routes. Paths are relative to https://api.intersink.com/v1.

All groups

The namespaces of a profile of this channel you may read (no documents)

GET/profiles/{profileId}/data

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
profileIdrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

One namespace of another profile of this channel (shared ones only)

GET/profiles/{profileId}/data/{ns}

Needs a signed-in user (Bearer token or access_token cookie).

Signed-in users of the same channel read namespaces with visibility "channel"; the channel's servers (secret key, profile_data:read) read all. Never across channels.

Parameters

NameTypeDescription
profileIdrequiredstring, path
nsrequiredstring, path

Response

200. The payload in data is of type object.

One namespace for many profiles of this channel (e.g. every player in a room)

GET/profiles/data/{ns}

Needs a signed-in user (Bearer token or access_token cookie).

profile_ids: comma-separated, at most 100. Signed-in users get the namespaces shared with the channel; the channel's servers (secret key, profile_data:read) get all.

Parameters

NameTypeDescription
nsrequiredstring, path
profile_idsrequiredstring, query

Response

200. The payload in data is not described in the spec yet.

The app data namespaces on your profile in this channel (no documents)

GET/profiles/me/data

Needs a signed-in user (Bearer token or access_token cookie).

Response

200. The payload in data is not described in the spec yet.

One app data namespace on your profile in this channel

GET/profiles/me/data/{ns}

Needs a signed-in user (Bearer token or access_token cookie).

A namespace that does not exist yet answers version 0 with data null. The ETag header is the version.

Parameters

NameTypeDescription
nsrequiredstring, path

Response

200. The payload in data is of type object.

Replace one app data namespace on your profile (conditional write)

PUT/profiles/me/data/{ns}

Needs a signed-in user (Bearer token or access_token cookie).

Body {"data": {…}, "visibility"?: "private"|"channel", "version"?: n}. Send the version you replace as If-Match: "n" (or body version); 0 / If-None-Match: * creates. 409 on a version conflict, 428 without a version, 413 over 32 KB per namespace or 128 KB per profile.

Parameters

NameTypeDescription
nsrequiredstring, path
if-matchstring, header
if-none-matchstring, header
If-None-Matchstring, header
If-Matchstring, header

Request body application/json

FieldTypeDescription
datarequiredobject
visibilitystringOne of: "private", "channel".
versionintegerMinimum 0.

Response

200. The payload in data is of type object.

Delete one app data namespace on your profile (If-Match: its version)

DELETE/profiles/me/data/{ns}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
nsrequiredstring, path
if-matchstring, header
If-Matchstring, header

Response

200. The payload in data is not described in the spec yet.