Skip to content

Make a code that signs the web app in

POST
/api/v1/me/web-link
curl --request POST \
--url http://localhost:8080/api/v1/me/web-link \
--header 'Authorization: Bearer <token>'

An app opens the Chek web app with this code in its link, so the person is signed in there without typing a password and the session token never appears in a URL. The code works once, for a minute.

The code.

Media typeapplication/json
object
code
required
string
expiresIn
required

Seconds until the code stops working.

integer

Example generated

{
"code": "example",
"expiresIn": 1
}

The request has no valid session token.

Media typeapplication/json
object
code
required
string
Allowed values: bad_request unauthorized forbidden not_found unavailable scan_in_progress content_changed already_set_up name_taken last_admin progress_conflict too_many_attempts not_linked identity_taken last_sign_in provider_unavailable too_many_sign_ins repository_exists repository_not_allowed repository_unreadable repository_needs_token repository_needs_password repository_needs_credentials repository_credentials_refused extension_invalid source_failed source_unavailable source_check_failed internal
message
required

Explains the problem to a developer.

string

Example

{
"code": "bad_request"
}

Too many codes and sign-ins are waiting (too_many_sign_ins); try again in a few minutes.

Media typeapplication/json
object
code
required
string
Allowed values: bad_request unauthorized forbidden not_found unavailable scan_in_progress content_changed already_set_up name_taken last_admin progress_conflict too_many_attempts not_linked identity_taken last_sign_in provider_unavailable too_many_sign_ins repository_exists repository_not_allowed repository_unreadable repository_needs_token repository_needs_password repository_needs_credentials repository_credentials_refused extension_invalid source_failed source_unavailable source_check_failed internal
message
required

Explains the problem to a developer.

string

Example

{
"code": "bad_request"
}