# OpenRouter API Documentation

This is the complete API documentation for connecting to the OpenRouter API using MindCloud's Universal API.

MindCloud offers one normalized API to access 3,400+ apps from a single place. It centralizes authentication and normalizes app APIs so they are easier and more consistent to use.

## Quickstart

1. A **MindCloud account** — sign in or create an account at [MindCloud](https://app.mindcloud.co).
2. A **MindCloud API Key** — create one in [API Keys](https://app.mindcloud.co/user/api-keys). Keep it on your server.
3. At least one **OpenRouter connection** — create or choose one in [Connections](https://app.mindcloud.co/credentials). Note its `connectionId`.

```text
POST https://connect.mindcloud.co/v2/universal/apps/openRouter/actions/{actionSlug}/run
```

## OpenRouter actions

- POST `assign-keys-to-guardrail` Assign Keys To Guardrail
- POST `assign-members-to-guardrail` Assign Members To Guardrail
- POST `create-api-key` Create API Key
- POST `create-chat-completion` Create Chat Completion
- POST `create-embedding` Create Embedding
- POST `create-guardrail` Create Guardrail
- POST `create-message` Create Message
- POST `create-response` Create Response
- DELETE `delete-api-key` Delete API Key
- DELETE `delete-guardrail` Delete Guardrail
- GET `get-activity` Get Activity
- GET `get-api-key` Get API Key
- GET `get-credits` Get Credits
- GET `get-current-api-key` Get Current API Key
- GET `get-generation` Get Generation
- GET `get-guardrail` Get Guardrail
- GET `list-api-keys` List API Keys
- GET `list-embedding-models` List Embedding Models
- GET `list-guardrail-key-assignments` List Guardrail Key Assignments
- GET `list-guardrail-key-assignments-by-guardrail` List Guardrail Key Assignments By Guardrail
- GET `list-guardrail-member-assignments` List Guardrail Member Assignments
- GET `list-guardrail-member-assignments-by-guardrail` List Guardrail Member Assignments By Guardrail
- GET `list-guardrails` List Guardrails
- GET `list-model-endpoints` List Model Endpoints
- GET `list-models` List Models
- GET `list-providers` List Providers
- GET `list-user-models` List User Models
- GET `preview-zdr-endpoints` Preview ZDR Endpoints
- PUT `update-api-key` Update API Key
- PUT `update-guardrail` Update Guardrail
