---
updatedAt: 2026-09-03T11:54:40.000Z
agentTools:
  projectIndex: https://docs.pelcro.com/llms.txt
---

# Get site

Get site settings, feature flags, and capabilities.

## Overview

Retrieve the settings and capabilities of the site identified by the `site_id` query parameter. Returns feature flags, fraud prevention settings, branding, and locale configuration.

## Use cases

* Check if e-commerce is enabled before attempting to create orders
* Verify passwordless login configuration
* Read fraud prevention rules
* Get site branding (logo, banner)

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "core-api",
    "version": "1.88"
  },
  "servers": [
    {
      "url": "https://www.pelcro.com/api/v1/core"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      },
      "sec1": {
        "type": "apiKey",
        "in": "query",
        "name": "site_id"
      }
    }
  },
  "security": [
    {
      "sec0": [],
      "sec1": []
    }
  ],
  "paths": {
    "/sites": {
      "get": {
        "summary": "Get site",
        "description": "Get site settings, feature flags, and capabilities.",
        "operationId": "get_sites-id",
        "parameters": [
          {
            "name": "site_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "description": "The unique identifier of the site associated with your account."
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "Bearer eyJ***"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer"
                        },
                        "name": {
                          "type": "string",
                          "nullable": true
                        },
                        "link": {
                          "type": "string",
                          "nullable": true
                        },
                        "slug": {
                          "type": "string",
                          "nullable": true
                        },
                        "default_locale": {
                          "type": "string",
                          "nullable": true
                        },
                        "country_code": {
                          "type": "string"
                        },
                        "support_email": {
                          "type": "string",
                          "nullable": true
                        },
                        "logo": {
                          "type": "string",
                          "nullable": true
                        },
                        "logo_height": {
                          "type": "integer",
                          "nullable": true
                        },
                        "logo_width": {
                          "type": "integer",
                          "nullable": true
                        },
                        "banner_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "email_notifications": {
                          "type": "boolean"
                        },
                        "email_verify_enabled": {
                          "type": "boolean"
                        },
                        "ecommerce_enabled": {
                          "type": "boolean"
                        },
                        "apple_pay_enabled": {
                          "type": "boolean"
                        },
                        "authenticate_single_user_enabled": {
                          "type": "boolean"
                        },
                        "charge_upon_renewal_enabled": {
                          "type": "boolean"
                        },
                        "charge_upon_renewal_manual_payment_enabled": {
                          "type": "boolean"
                        },
                        "charge_upon_renewal_payment_destination": {
                          "type": "integer"
                        },
                        "group_subscription_by_email_domain_enabled": {
                          "type": "boolean"
                        },
                        "group_subscription_by_ip_address_enabled": {
                          "type": "boolean"
                        },
                        "restrictive_paywall_metatags_enabled": {
                          "type": "boolean"
                        },
                        "automatic_personal_data_deletion": {
                          "type": "boolean"
                        },
                        "passwordless_enabled": {
                          "type": "boolean",
                          "nullable": true
                        },
                        "passwordless_token_duration": {
                          "type": "integer",
                          "nullable": true
                        },
                        "fraud_prevention_settings": {
                          "type": "object",
                          "nullable": true
                        },
                        "site_settings": {
                          "type": "object",
                          "nullable": true
                        },
                        "created_at": {
                          "type": "integer",
                          "format": "int64",
                          "description": "Unix timestamp."
                        },
                        "updated_at": {
                          "type": "integer",
                          "format": "int64",
                          "description": "Unix timestamp."
                        }
                      }
                    },
                    "status": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "Result": {
                    "value": {
                      "data": {
                        "id": 123,
                        "name": "My Publication",
                        "link": "https://mypublication.com",
                        "slug": "my-publication",
                        "default_locale": "en_US",
                        "country_code": "US",
                        "support_email": "support@mypublication.com",
                        "logo": null,
                        "logo_height": null,
                        "logo_width": null,
                        "banner_url": null,
                        "email_notifications": true,
                        "email_verify_enabled": false,
                        "ecommerce_enabled": true,
                        "apple_pay_enabled": false,
                        "authenticate_single_user_enabled": false,
                        "charge_upon_renewal_enabled": false,
                        "charge_upon_renewal_manual_payment_enabled": false,
                        "charge_upon_renewal_payment_destination": 1,
                        "group_subscription_by_email_domain_enabled": false,
                        "group_subscription_by_ip_address_enabled": false,
                        "restrictive_paywall_metatags_enabled": false,
                        "automatic_personal_data_deletion": false,
                        "passwordless_enabled": false,
                        "passwordless_token_duration": null,
                        "fraud_prevention_settings": null,
                        "site_settings": null,
                        "created_at": 1712188800,
                        "updated_at": 1712188800
                      },
                      "status": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": {
                      "error": {
                        "status": 400,
                        "message": "Invalid request, please try again."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": {
                      "error": "Unauthenticated."
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```