# Agent Authentication & Registration for Seenify

Seenify supports automated registration and programmatic authentication for AI agents, developers, and integrations.

## 1. Registration
Agents can register via:
```http
POST https://seenify.codeguyakash.in/auth/register
Content-Type: application/json

{
  "name": "My Agent",
  "email": "agent@example.com",
  "password": "StrongPassword123"
}
```

## 2. Authentication
Obtain a Bearer token via:
```http
POST https://seenify.codeguyakash.in/auth/login
Content-Type: application/json

{
  "email": "agent@example.com",
  "password": "StrongPassword123"
}
```
Response:
```json
{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "user": {
    "id": "usr_...",
    "email": "agent@example.com"
  }
}
```

## 3. Authenticated Requests
Include the token in the `Authorization` header:
```http
Authorization: Bearer <token>
```

## 4. Discovery Standards
- OAuth Protected Resource Metadata: `https://seenify.codeguyakash.in/.well-known/oauth-protected-resource`
- OpenID Configuration: `https://seenify.codeguyakash.in/.well-known/openid-configuration`
- OAuth Authorization Server: `https://seenify.codeguyakash.in/.well-known/oauth-authorization-server`
