apis / machine access
Carter LaSalle developer resources
API documentation, authentication guides, and agent resources for integrating with the Carter LaSalle portfolio.
Quick Start
Get started with the portfolio API in minutes. All endpoints are publicly accessible for read operations.
API Endpoints
/api/statusCheck API availability and health status. Returns JSON with status and service fields.
/api/contactSend a message through the portfolio contact form. Requires same-origin requests, rate limited to 5 requests per hour.
/mcpModel Context Protocol server (JSON-RPC 2.0 over Streamable HTTP). Exposes portfolio profile data as MCP tools.
Authentication
The portfolio API uses same-origin validation for the contact endpoint. No API keys are required for public read operations.
Same-Origin Policy
The /api/contact endpoint validates the Origin header to ensure requests originate from the portfolio domain. Cross-origin requests will receive a 403 response.
Rate Limiting
API endpoints are rate limited to prevent abuse. Rate limit headers are included in all responses.
Response Headers
RateLimit-Limit: Maximum requests per windowRateLimit-Remaining: Requests remaining in windowRateLimit-Reset: Unix timestamp when window resetsRetry-After: Seconds until retry (on 429 responses)
Versioning and Deprecation
Every response carries an API-Version header naming the contract version that served it. Send API-Version: 1 to pin a version; supported versions are 1. Any other value returns 400 UNSUPPORTED_API_VERSION.
Breaking changes ship under a new API version. Deprecated operations and fields remain available for at least 90 days, are marked "deprecated: true" in /openapi.json, and return Deprecation: true with a Sunset header naming the removal date until they are removed.
Agent Integration
The portfolio provides machine-readable endpoints for AI agent integration.
llms.txt
Concise machine-readable index for AI agents and language models.
llms-full.txt
Expanded profile with project details and citation guidance.
MCP Manifest
Model Context Protocol server manifest for tool integration.
API Catalog
RFC 9727 linkset for API discovery and service description.
MCP Server Card
SEP-2127 server card describing the MCP endpoint, transport, and protocol version.
AI Catalog
Agentic Resource Discovery manifest for the MCP server, A2A agent, skills, and API.
A2A Agent Card
Agent2Agent card for the portfolio agent served at /a2a.
auth.md
Agent authentication and registration statement for this site.
CLI
treecat is an official Carter LaSalle CLI: a Go tool that prints a recursive directory tree with syntax-highlighted file contents for sharing code context with language models, documentation, and code review.
Install treecat
brew tap carterlasalle/treecat brew install treecat
Go users can run go install github.com/carterlasalle/treecat/cmd/treecat@latest. Source and release notes: github.com/carterlasalle/treecat.
Error Handling
All error responses include structured JSON with machine-readable error codes and resolution hints.
{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Name must be between 2 and 100 characters.",
"resolution": "Check the request body fields match the required schema"
}
}Support
For API support or questions, contact carterlasalle@gmail.com or use the contact form.