View site settings, feature flags, and capabilities.
Overview
A site represents a property (website, app) connected to your Pelcro account. Each site has its own configuration, feature flags, and capabilities that control what functionality is available.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /sites | Get site |
Site object
| Attribute | Type | Description |
|---|---|---|
id | integer | Unique identifier |
name | string | Site name |
link | string | Site URL |
slug | string | URL-safe slug |
default_locale | string | Default locale (e.g. en_US) |
country_code | string | Country code |
support_email | string | Support email address |
logo | string | Logo URL |
logo_height | integer | Logo height in pixels |
logo_width | integer | Logo width in pixels |
banner_url | string | Banner image URL |
email_notifications | boolean | Email notifications enabled |
email_verify_enabled | boolean | Email verification required |
ecommerce_enabled | boolean | E-commerce feature flag |
apple_pay_enabled | boolean | Apple Pay feature flag |
authenticate_single_user_enabled | boolean | Single user authentication |
charge_upon_renewal_enabled | boolean | Charge upon renewal |
charge_upon_renewal_manual_payment_enabled | boolean | Manual payment on renewal |
charge_upon_renewal_payment_destination | integer | Renewal payment destination |
group_subscription_by_email_domain_enabled | boolean | Group subscription by email domain |
group_subscription_by_ip_address_enabled | boolean | Group subscription by IP address |
restrictive_paywall_metatags_enabled | boolean | Restrictive paywall metatags |
automatic_personal_data_deletion | boolean | Automatic personal data deletion |
passwordless_enabled | boolean | Passwordless login enabled |
passwordless_token_duration | integer | Passwordless token duration in hours |
fraud_prevention_settings | object | Fraud prevention configuration |
site_settings | object | Additional site settings |
created_at | integer | Unix timestamp |
updated_at | integer | Unix timestamp |

