# agentcat-api
Generated HTTP client for the [AgentCat](https://agentcat.com) API.
## You probably want `agentcat-sdk` instead
This is the low-level generated transport, produced from the AgentCat OpenAPI
specification and consumed by
[`agentcat-sdk`](https://crates.io/crates/agentcat-sdk), which is the
supported integration surface for MCP server authors.
Do not edit this crate by hand. Every release is regenerated from the
specification.
## Installation
```toml
[dependencies]
agentcat-api = "0.0"
```
The client is async and runs on [reqwest](https://crates.io/crates/reqwest),
so it needs a Tokio runtime. HTTPS uses the platform's native TLS library by
default. For a pure-Rust TLS stack, turn off the default features and enable
`rustls`:
```toml
[dependencies]
agentcat-api = { version = "0.0", default-features = false, features = ["rustls"] }
```
## Usage
```rust
use agentcat_api::apis::configuration::{ApiKey, Configuration};
use agentcat_api::apis::events_api::{self, PublishEventParams};
use agentcat_api::models::publish_event_request::EventType;
use agentcat_api::models::PublishEventRequest;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = Configuration {
api_key: Some(ApiKey {
prefix: Some("Token".to_owned()),
key: "YOUR_API_KEY".to_owned(),
}),
..Configuration::default()
};
let mut event = PublishEventRequest::new("proj_...".to_owned());
event.event_type = Some(EventType::McpColonToolsSlashCall);
events_api::publish_event(
&config,
PublishEventParams {
publish_event_request: Some(event),
},
)
.await?;
Ok(())
}
```
Every endpoint and model is documented in [`docs`](docs).
## Other languages
| TypeScript | [`agentcat-api`](https://www.npmjs.com/package/agentcat-api) |
| Python | [`agentcat-api`](https://pypi.org/project/agentcat-api/) |
| Go | [`agentcat-go-api`](https://github.com/agentcathq/agentcat-go-api) |
| Ruby | [`agentcat-api`](https://rubygems.org/gems/agentcat-api) |
| Java | [`com.agentcat:api`](https://central.sonatype.com/artifact/com.agentcat/api) |
| PHP | [`agentcat/api`](https://packagist.org/packages/agentcat/api) |
| .NET | [`AgentCat.Api`](https://www.nuget.org/packages/AgentCat.Api) |
## License
MIT © AgentCat, Inc.