> ## Documentation Index
> Fetch the complete documentation index at: https://docs.profy.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# Platform Console

> Developer Console feature overview

[Platform Console](https://platform.profy.cn) is Profy's developer console, providing API Key management, usage analytics, and log querying capabilities.

## Access

The Platform Console is deployed at `platform.profy.cn` and shares login sessions with the main site `app.profy.cn` (via cross-subdomain cookies). You only need to log in once on the main site to access the Platform Console directly.

Entry points:

* Visit [platform.profy.cn](https://platform.profy.cn) directly
* Click "Developer Platform" in the avatar menu on the main site

<Note>
  If you are not logged in, the Platform Console will automatically redirect you to `app.profy.cn/sign-in` to sign in.
</Note>

## Dashboard

The Dashboard is the first page you see when entering the console, providing an overall view of your API usage.

### KPI Cards

The top of the Dashboard displays key metrics:

| Metric                    | Description                                              |
| ------------------------- | -------------------------------------------------------- |
| **Total Calls**           | Total number of API calls within the selected time range |
| **Success Rate**          | Percentage of successful calls out of total calls        |
| **Average Response Time** | Average API call latency (milliseconds)                  |
| **Credits Consumed**      | Total credits consumed within the selected time range    |

### Call Trend Chart

The center of the Dashboard displays an API call volume trend chart, with switchable time ranges:

* **Today**: Displayed by hour
* **Last 7 Days**: Displayed by day (default)
* **Last 30 Days**: Displayed by day

## API Keys

The API Keys page is for managing your API keys.

### Features

* **Create Key**: Specify a name, permission scopes, and expiration time
* **View List**: Displays all keys with their status, creation time, and expiration info
* **Revoke Key**: Permanently disable keys that are no longer needed

### Key Information

| Column     | Description                        |
| ---------- | ---------------------------------- |
| Name       | Descriptive name of the key        |
| Key Prefix | `sk-pro-xxxx...` (securely masked) |
| Scopes     | Endpoints the key can access       |
| Created At | Date the key was created           |
| Expires At | Expiration date of the key         |
| Status     | Active / Expired / Revoked         |

<Tip>
  The full API Key is displayed only once at creation time. If you forget to save it, you will need to create a new key.
</Tip>

For a detailed management guide, see [API Key Management](/en/developers/api-key-management).

## Usage Stats

The Usage Stats page provides detailed analysis of API call volume.

### Endpoint Distribution

View call volume distribution by endpoint:

| Endpoint               | Typical Use        |
| ---------------------- | ------------------ |
| `/v1/agents/run`       | Expert invocations |
| `/v1/chat/completions` | Chat completions   |
| `/v1/events`           | Custom events      |
| `/v1/models`           | Model list         |

### Time Range

All statistics support three time dimensions:

* **Today**: View real-time data
* **Last 7 Days**: View weekly trends
* **Last 30 Days**: View monthly overview

### Analysis Dimensions

* **By endpoint**: Which APIs are called most
* **By status code**: Ratio of successes to errors
* **By API Key**: Call distribution across different keys

## Call Logs

The Call Logs page records detailed information for every API call, with search and filtering support.

### Log List

Each log entry contains:

| Field       | Description                            |
| ----------- | -------------------------------------- |
| Time        | When the call occurred                 |
| Endpoint    | The API endpoint called                |
| Method      | HTTP method                            |
| Status Code | HTTP response status code              |
| Duration    | Request processing time (milliseconds) |
| Credits     | Credits consumed by this call (if any) |
| API Key     | Name of the key used                   |

### Filters

| Filter      | Description                |
| ----------- | -------------------------- |
| Endpoint    | Filter by API endpoint     |
| Status Code | Filter by HTTP status code |
| API Key     | Filter by key used         |
| Time Range  | Filter by start/end time   |

### Detail Expansion

Click a log entry to expand and view detailed information:

* **Request Summary**: Key request parameters (e.g., model name, Expert identifier, message count)
* **Response Summary**: Key response information (e.g., token usage, upstream status code)
* **Credit Consumption**: Number of credits deducted by this call

<Note>
  For security reasons, logs do not record the full request and response bodies — only key summary information is retained.
</Note>

### Debugging Use Cases

Call Logs are very useful for debugging:

1. **Locate failed requests**: Filter by status code for 4xx/5xx errors
2. **Analyze latency**: Sort by duration to find the slowest requests
3. **Track credit consumption**: See which calls consumed the most credits
4. **Audit key usage**: Review call records for a specific key

## Playground (Coming Soon)

The Playground is an online API testing sandbox that lets you test APIs without writing code.

Planned features:

* **Visual request builder**: Configure request parameters via forms
* **Live response preview**: View API responses (with SSE stream preview support)
* **Code snippet generation**: Automatically generate Python / TypeScript / curl code
* **Save and share**: Save test cases for team reference

## Technical Architecture

The Platform Console is an independent Next.js application:

* **Deployment**: `platform.profy.cn` (independent Kubernetes Deployment)
* **Authentication**: Cross-subdomain cookies (`AUTH_COOKIE_DOMAIN=.profy.cn`); directly reads the session table to verify login status
* **Data**: All data is fetched through the Core API; the Platform itself runs no business logic

## Next Steps

<CardGroup cols={2}>
  <Card title="API Key Management" icon="key" href="/en/developers/api-key-management">
    Create and manage API Keys
  </Card>

  <Card title="Quickstart" icon="rocket" href="/en/developers/quickstart">
    Make your first API call
  </Card>
</CardGroup>
