What an invitation's link opens
const url = 'https://example.com/api/v1/auth/invitations/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/auth/invitations/exampleRead before anyone is signed in, to show the invited person whose
invitation it is. An invitation that cannot be accepted, whether it
was never issued, has been used or replaced, or has expired, is
invitation_gone, alike. The secret never reaches a log line.
password_allowed says whether the invitation can be accepted with
a password; when the invited email’s domain is enforced to an auth
provider, enforced_provider names it, the only way to accept.
providers lists the auth providers signing in through which
accepts it: those whose domains hold the invited email. Signing in
through one activates the invited member and makes the grant the
invitation carries, without a password.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The invitation’s secret, the last segment of the link its issuer passed on.
Responses
Section titled “Responses”The invitation.
What an invitation’s link opens.
object
The invited member’s email with all but the first character of its local part hidden, such as g***@example.com.
The project an invitation grants a role in. Absent once the invitation’s grant was dropped.
object
The built-in role accepting grants in project; absent with it.
The display name of the member who issued the invitation; absent when none did.
Whether the invitation can be accepted with a password; false while local login is disabled or when the invited email’s domain is enforced to an auth provider.
An auth provider as the sign-in page offers it. As enforced_provider, the provider the given email’s domain is enforced to, the only way it signs in; absent when the domain is not enforced or no email was given.
object
The protocol the provider speaks.
The enabled auth providers signing in through which accepts the invitation, ordered by display name; those whose domains hold the invited email, only enforced_provider when the email’s domain is enforced to it, and none when no provider vouches for the email.
An auth provider as the sign-in page offers it. As enforced_provider, the provider the given email’s domain is enforced to, the only way it signs in; absent when the domain is not enforced or no email was given.
object
The protocol the provider speaks.
Example
{ "enforced_provider": { "kind": "oidc" }, "providers": [ { "kind": "oidc" } ]}No credential, or one that is not accepted: unauthenticated without
a credential (a session cookie the server did not issue counts as
none); invalid_token, token_revoked or token_expired for an API
token, with a WWW-Authenticate header naming the code;
session_expired for a session that has ended, whose cookie is
cleared; invalid_credentials for a sign-in.
A problem document (RFC 9457). Code-specific values are further members.
object
Stable snake_case name of the problem, which clients branch on.
An English explanation for humans; never what a client branches on.
Seconds to wait before retrying, for a rate limit.
The permission the caller lacks, for forbidden, or the role’s permission the caller lacks, for role_not_allowed.
The version the entity has now, for version_mismatch.
What still names what the write would remove or hide, for in_use.
object
What names it, such as flag, segment or experiment.
The key of the environment it is named in; null when it is named in every environment.
The slug of the auth provider to sign in through instead, for sso_required.
What keeps an auth provider from being deleted, disabled or edited, for provider_in_use, such as identities, enforced domains or only way in (the only enabled provider while local login is disabled).
Why a system the server asked did not answer as needed, for provider_unreachable; for sink_not_ready the failure class of the target’s check, such as connect or status.
The HTTP status the target answered, for sink_not_ready, when it answered.
The target’s own error code, for sink_not_ready, when it speaks one, such as a ClickHouse exception or an S3 error code.
object
JSON Pointer into the request body.
The values of the rule broken, such as the bounds of a length, for a client to explain the violation in its own language.
object
Example generated
{ "type": "example", "title": "example", "status": 1, "code": "example", "detail": "example", "request_id": "example", "retry_after": 1, "permission": "example", "current_version": 1, "references": [ { "kind": "example", "key": "example", "environment": "example" } ], "provider": "example", "used_by": [ "example" ], "failure": "example", "failure_status": 1, "failure_code": "example", "errors": [ { "pointer": "example", "code": "example", "detail": "example", "params": {} } ]}Headers
Section titled “Headers”invitation_gone: the link opens no invitation that can be accepted: it was never issued, has been used or replaced, or has expired.
A problem document (RFC 9457). Code-specific values are further members.
object
Stable snake_case name of the problem, which clients branch on.
An English explanation for humans; never what a client branches on.
Seconds to wait before retrying, for a rate limit.
The permission the caller lacks, for forbidden, or the role’s permission the caller lacks, for role_not_allowed.
The version the entity has now, for version_mismatch.
What still names what the write would remove or hide, for in_use.
object
What names it, such as flag, segment or experiment.
The key of the environment it is named in; null when it is named in every environment.
The slug of the auth provider to sign in through instead, for sso_required.
What keeps an auth provider from being deleted, disabled or edited, for provider_in_use, such as identities, enforced domains or only way in (the only enabled provider while local login is disabled).
Why a system the server asked did not answer as needed, for provider_unreachable; for sink_not_ready the failure class of the target’s check, such as connect or status.
The HTTP status the target answered, for sink_not_ready, when it answered.
The target’s own error code, for sink_not_ready, when it speaks one, such as a ClickHouse exception or an S3 error code.
object
JSON Pointer into the request body.
The values of the rule broken, such as the bounds of a length, for a client to explain the violation in its own language.
object
Example generated
{ "type": "example", "title": "example", "status": 1, "code": "example", "detail": "example", "request_id": "example", "retry_after": 1, "permission": "example", "current_version": 1, "references": [ { "kind": "example", "key": "example", "environment": "example" } ], "provider": "example", "used_by": [ "example" ], "failure": "example", "failure_status": 1, "failure_code": "example", "errors": [ { "pointer": "example", "code": "example", "detail": "example", "params": {} } ]}