Get email authorization

Retrieve the free plans whose domain allow-list matches the domain of the supplied email address.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
📘

Caching

This endpoint implements multi-layer caching to ensure optimal performance and reduce latency. Responses are cached for up to 5 minutes at both the edge network and browser levels. This applies to:

  • Successful responses (200) - Matching plans for the email domain
  • Not found responses (404) - No matching plans for the email domain

When you update plan configurations, changes may take up to 5 minutes to reflect in API responses due to caching.

Retrieve active, free plans whose allowed domains match the provided email's domain.

Pass an email query parameter. The endpoint extracts the domain and matches it against plans with configured allowed domains. Only active plans with amount = 0 and matching domains are returned. The expires_at attribute of the plan has no effect on this endpoint's output. Returns 400 if the email format is invalid.

const response = await fetch("https://www.pelcro.com/api/v1/sdk/plan/domain/authorization?site_id=1232&[email protected]", {
  method: "GET",
  headers: {
    "Accept": "application/json"
  }
});

const data = await response.json();
$response = Http::get('https://www.pelcro.com/api/v1/sdk/plan/domain/authorization', [
    'site_id' => 1232,
    'email' => '[email protected]',
]);

$data = $response->json();
Query Params
int32
required

The unique identifier of the site associated with your account.

string
enum
Defaults to en

Optional. Two-letter ISO 639-1 language code used to localize response messages. Supported values: en, fr, it, ko, es, de. Defaults to en; an unsupported value falls back to en.

Allowed:
string
required

The email address whose domain is checked against each plan’s domain allow-list.

Responses

Language
Credentials
Query
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json