StackMoreLayersДокументация
APIReference

Получить ссылки-приглашения

GET
/competitions/{competition_id}/invite-links/

The competition's invite links on Account Security, newest first: its links, its secret link and its e-mail invitations. Each admits whoever has it to the competition with the link's role, whatever the competition's «Кто видит».

The one-time token is never echoed here; it is returned once, by the create call.

Personal tokens only for now: access is managed by a person, so a competition automation token is refused (401 token_type_not_allowed).

АвторизацияBearer <token>

StackMoreLayers API token. Send as Authorization: Bearer sml_pat_live_<prefix>.<secret>.

In: header

Параметры пути

competition_id*integer

Numeric competition identifier.

Range1 <= value

Ответ

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/competitions/1/invite-links/"
{  "results": [    {      "id": 0,      "public_id": "string",      "name": "string",      "cohort_name": "string",      "cohort_group_ref": "string",      "status": "active",      "role": "viewer",      "kind": "link",      "audience": {        "mode": "anyone",        "domains": [          "string"        ],        "emails": [          "string"        ]      },      "max_redemptions": 1,      "redemptions_count": 0,      "is_full": true,      "starts_at": "2019-08-24T14:15:22Z",      "expires_at": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z",      "revoked_at": "2019-08-24T14:15:22Z",      "last_redeemed_at": "2019-08-24T14:15:22Z",      "signin_route": "string",      "converted_participants": 0    }  ]}