https://api.an4rch.com/v1
curl -X GET https://api.an4rch.com/v1/files \ -H "Authorization: Bearer YOUR_TOKEN"
{
"data": [
{ "id": "file_123", "name": "document.pdf", "size": 2048000, "created_at": "2025-03-20T10:00:00Z" }
],
"total": 42
}
curl -X POST https://api.an4rch.com/v1/files/upload \ -F "file=@image.png" \ -H "Authorization: Bearer YOUR_TOKEN"
curl -X GET https://api.an4rch.com/v1/files/file_123 \ -H "Authorization: Bearer YOUR_TOKEN"
curl -X DELETE https://api.an4rch.com/v1/files/file_123 \ -H "Authorization: Bearer YOUR_TOKEN"
curl -X GET https://api.an4rch.com/v1/user/info \ -H "Authorization: Bearer YOUR_TOKEN"
curl -X PUT https://api.an4rch.com/v1/user/settings \
-H "Content-Type: application/json" \
-d '{"theme":"dark"}' \
-H "Authorization: Bearer YOUR_TOKEN"
curl -X POST https://api.an4rch.com/v1/auth/token \
-H "Content-Type: application/json" \
-d '{"email":"user@an4rch.com","password":"secret"}'
Управляйте доступом, создавайте токены в личном кабинете.