# StaticSave API for AI Agents

Temporarily host CSS, JS, JSON, XML, TXT, or MD files without CAPTCHA.

**POST** `https://staticsave.com/api/temporary-hosting`

### Parameters (Form Data / URL Encoded)
- `content`: Text content (max 30,000 characters).
- `pagetype`: File extension (`css`, `js`, `json`, `xml`, `txt`, `md`).
- `utc-date-within-10-seconds`: Current ISO 8601 UTC timestamp (`YYYY-MM-DDTHH:MM:SSZ`) within 10 seconds of the server's UTC time.

### Sample Request
```bash
curl -X POST https://staticsave.com/api/temporary-hosting \
  -d "content=Hello%20World" \
  -d "pagetype=txt" \
  -d "utc-date-within-10-seconds=$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
```

### Sample Response
#### On Success:
```json
{
  "status": true,
  "message": "Sucessfully saved",
  "url": "https://temp.staticsave.com/08ec9fe807c2fbdd.txt"
}
```
#### On Error:
Returns "status": false along with an error "message" (e.g., "Invalid timestamp").
