# Authentication

Authenticate customer-scoped requests with your API key.

> **Proposed public API.** The direct submission contract is a design proposal. Its examples are illustrative.

## API key

Use your solver portal **Client ID** as your API key. Copy it exactly as issued into `COORDIGATOR_API_KEY` and send it in the `Authorization` header using the `Bearer` scheme.

```text
Authorization: Bearer <api-key>
Content-Type: application/json
```

The proposed direct-plan examples use the API key for all three operations. In the implemented API, preparing and creating a plan use the API key. Submitting a solve requires the plan edit token. Retrieving the result accepts a plan view or edit token.

## Keep credentials private

Store credentials on the server. Never include them in browser code, logs or source control. The current operator can rotate or revoke credentials.
