Skip to content

Get an authorization link

GET
/emails/auth-links/{id}
curl --request GET \
--url https://api.clearance.rest/emails/auth-links/example \
--header 'X-API-Key: <X-API-Key>'

Includes the mailboxes connected with the link.

id
required
string
>= 1 characters

Default Response

Media typeapplication/json
object
success
required
boolean
id
required
string
url
required

The page to share, e.g. https://links.clearance.rest/.

string
status
required
string
Allowed values: active expired revoked exhausted
expires_at
required

UTC timestamp (ISO 8601).

string
max_uses
required
integer
>= -9007199254740991 <= 9007199254740991
use_count
required
integer
>= -9007199254740991 <= 9007199254740991
providers
required
Array<string>
Allowed values: gmail outlook
locale
required
string
Allowed values: en tr
return_url
required
string | null
branding
required

Branding of the link page (project defaults overridden by the link); null fields use the default look.

object
name
required
string | null
logo_url
required
string | null
description
required
string | null
primary_color
required
string | null
metadata
required

Free-form JSON object (at most 16 KB, 5 levels deep, keys up to 64 characters).

object
key
additional properties
project_id
required
string
created_by
required
string | null
created_at
required

UTC timestamp (ISO 8601).

string
last_used_at
required
Any of:

UTC timestamp (ISO 8601).

string
revoked_at
required
Any of:

UTC timestamp (ISO 8601).

string
uses
required
Array<object>

A mailbox that was connected with an authorization link.

object
email
required
string | null
email_provider
required
string | null
connected_at
required

UTC timestamp (ISO 8601).

string
Example
{
"success": true,
"status": "active",
"providers": [
"gmail"
],
"locale": "en"
}

Default Response

Media typeapplication/json

Error envelope returned by every JSON endpoint.

object
success
required
boolean
error
required
object
code
required

Machine-readable error code (snake_case).

string
message
required

Human-readable message.

string
details

Extra context for the error.

object
key
additional properties
Example
{
"success": false
}

Default Response

Media typeapplication/json

Error envelope returned by every JSON endpoint.

object
success
required
boolean
error
required
object
code
required

Machine-readable error code (snake_case).

string
message
required

Human-readable message.

string
details

Extra context for the error.

object
key
additional properties
Example
{
"success": false
}

Default Response

Media typeapplication/json

Error envelope returned by every JSON endpoint.

object
success
required
boolean
error
required
object
code
required

Machine-readable error code (snake_case).

string
message
required

Human-readable message.

string
details

Extra context for the error.

object
key
additional properties
Example
{
"success": false
}