API

ComSiteAccess

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/com_site_access/redeem create Viewer session token for the site's host-only cookie
GET /api/v1/com_site_access/start load HTML waiting page that refreshes until the site's HTTPS certificate is ready

Fields

Field Type Required Description

create

POST /api/v1/com_site_access/redeem

Operation ID: api_v1_com_site_access_redeem.

Authentication: bearer token (bearerAuth).

Request body

application/json

Property Type Required Description
host string Yes
token string Yes

Responses

application/json

Property Type Required Description
max_age integer Yes
session_token string Yes
viewer_id string Yes
401: Missing dispatch bearer, or an invalid, expired or replayed token
403: The signed-in user can no longer view the site

load

GET /api/v1/com_site_access/start

Operation ID: api_v1_com_site_access_start.

Authentication: not required.

Parameters

Parameter In Type Required Description
host query string Yes Site hostname, for example docs.acme.composal.page
return_to query string No Relative path to open after sign-in

Responses

200: HTML waiting page that refreshes until the site's HTTPS certificate is ready

text/html

The response is string.

302: Redirect to login, to the site callback, or straight to a public site
403: HTML page explaining that the viewer cannot open the site

text/html

The response is string.

404: HTML page for an unknown site

text/html

The response is string.