GET /sites/:siteId
This endpoint returns detailed information about a single site, including its status and last generation options.
Path Parameters
The ID of the site to retrieve.
Response
The unique identifier for the site.
The current status of the site.
The timestamp for when the site was last updated.
Indicates if OpenAI enhancement was used in the last generation.
The total number of URLs mapped for the site.
curl -X GET https://api.llmgenerator.com/api/v1/sites/site_xxxxxxxxxxxxx \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "site_xxxxxxxxxxxxx",
"url": "https://www.example.com",
"userId": "user_xxxxxxxxxxxxx",
"status": "active",
"lastUpdated": "2023-10-27T10:01:00Z",
"fileUrl": "https://files.llmgenerator.com/llms-xxxxxxxx.txt",
"openaiEnabled": true,
"totalMappedUrls": 50,
"totalScrapedUrls": 50,
"createdAt": "2023-10-20T10:00:00Z",
"updatedAt": "2023-10-27T10:01:00Z"
}