# NudiTok auth.md

## Public API

Base URL: https://nuditok.com/api/v1

Most read endpoints require no authentication:

| Endpoint | Description |
|---|---|
| GET /api/v1/videos/{hash} | Video metadata |
| POST /api/v1/videos/feed | Paginated feed |
| GET /api/v1/users/{username} | Creator profile |
| GET /api/v1/tags/search?q= | Tag search |
| GET /api/v1/tags/popular | Popular tags |
| GET /api/v1/creators | Creator directory |

## Bearer Token (PAT)

For write access, request a Personal Access Token via https://nuditok.com/contact.

```
Authorization: Bearer ntok_<token>
```

### Scopes

- `videos:write` — Create or update video metadata
- `admin:*` — Full admin access (restricted)

## Rate Limits

- Public read: 300 req/min per IP
- Write endpoints: 30 req/min per IP
- Auth: 10 req/min per IP

## Agent Registration

```json
{
  "agent_auth": {
    "skill": "https://nuditok.com/.well-known/oauth-authorization-server",
    "register_uri": "https://nuditok.com/contact",
    "identity_types_supported": ["anonymous"],
    "anonymous": {
      "credential_types_supported": ["bearer_token"],
      "claim_uri": "https://nuditok.com/contact"
    }
  }
}
```

## Machine-readable context

- https://nuditok.com/llms.txt — Summary for LLMs
- https://nuditok.com/llms-full.txt — Full site context
- https://nuditok.com/.well-known/oauth-authorization-server — OAuth metadata
- https://nuditok.com/.well-known/oauth-protected-resource — Protected resource metadata
