Skip to main content

GET /sites

This endpoint returns a list of all sites that the authenticated user has added to their account.

Response

sites
array
An array of site objects.
id
string
The unique identifier for the site.
url
string
The URL of the site.
status
string
The current status of the site.
lastUpdated
string
The timestamp for when the site was last updated.
total
number
The total number of sites.
curl -X GET https://api.llmgenerator.com/api/v1/sites \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "sites": [
    {
      "id": "site_xxxxxxxxxxxxx",
      "url": "https://www.example.com",
      "status": "active",
      "lastUpdated": "2023-10-27T10:01:00Z"
    },
    {
      "id": "site_yyyyyyyyyyyyy",
      "url": "https://www.another-example.com",
      "status": "active",
      "lastUpdated": "2023-10-26T15:30:00Z"
    }
  ],
  "total": 2
}