# auth.md

> Agent Registration and Authentication for Tenha Uma Reforma API.

## Audience
Autonomous AI agents, LLMs, and multi-agent systems looking to estimate renovation projects and submit quotation requests on behalf of users.

## agent_auth
```json
{
  "skill": "https://www.tenhaumareforma.com.br/auth.md",
  "register_uri": "https://www.tenhaumareforma.com.br/api/orcamento.php",
  "identity_types_supported": [
    "anonymous",
    "identity_assertion"
  ],
  "anonymous": {
    "credential_types_supported": [
      "bearer"
    ],
    "claim_uri": "https://www.tenhaumareforma.com.br/api/orcamento.php"
  },
  "identity_assertion": {
    "assertion_types_supported": [
      "urn:ietf:params:oauth:token-type:id-jag",
      "verified_email"
    ],
    "credential_types_supported": [
      "bearer"
    ],
    "claim_uri": "https://www.tenhaumareforma.com.br/api/orcamento.php"
  }
}
```

## Agent Registration & Quotation Dispatch
1. **Discover**: Check `/.well-known/oauth-protected-resource` and `/.well-known/oauth-authorization-server`.
2. **Register & Submit**: Post renovation project requirements to `https://www.tenhaumareforma.com.br/api/orcamento.php`.
3. **Payload Structure**:
   - `servico`: Name of requested service (e.g. Marceneiro, Pedreiro, Pintor, Engenheiro).
   - `cidade`: City (e.g. São Paulo).
   - `bairro`: Neighborhood.
   - `nome`: Customer contact name.
   - `telefone`: Customer phone or WhatsApp.
   - `descricao`: Renovation scope and details.
4. **Execution**: The platform records the quotation protocol and automatically routes it to our technical engineers via WhatsApp.

## Discovery Metadata
- API Catalog: https://www.tenhaumareforma.com.br/.well-known/api-catalog
- OpenAPI Specification: https://www.tenhaumareforma.com.br/.well-known/openapi.json
- MCP Server Card: https://www.tenhaumareforma.com.br/.well-known/mcp/server-card.json
- A2A Agent Card: https://www.tenhaumareforma.com.br/.well-known/agent-card.json
- LLM Context: https://www.tenhaumareforma.com.br/llms.txt
