# 获取指定项目信息 (/zh-CN/api-reference/api-ref/console/get-project)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

获取指定声网项目的信息。

- OpenAPI: /openapi/console/rest-api.zh-CN.yaml
- Operation ID: get-dev-v1-project
- Method: GET
- Path: /dev/v1/project
- Endpoint: https://api.sd-rtn.com/dev/v1/project

## Servers

- https://api.sd-rtn.com

## Authorization

This endpoint requires authentication.

- `Authorization`

## Parameters

- `id` (query, required, string) - 项目 ID，可以通过调用[获取所有项目信息 API](/zh-CN/api-reference/api-ref/console/list-projects) 获取。
- `name` (query, required, string) - 项目名称。

## Request body

No request body.

## Responses

### 201

如果状态码为 201，则请求成功。

- `project` (array)
  - `project.items` (object)
    - `project.items.id` (string) - 项目 ID。
    - `project.items.name` (string) - 项目名称。
    - `project.items.vendor_key` (string) - 项目的 App ID。
    - `project.items.status` (number) - 项目状态。
- `1`：启用
- `0`：禁用
    - `project.items.created` (number) - 项目的创建时间，Unix 时间戳，单位为秒。
### 非 201

如果状态码不为 201，请求失败。请根据[响应状态码](response-codes)和 `message` 字段进行排查。

- `status` (string) - 本次请求的状态：
- `success`：请求成功。
- `error`：请求失败。

- `message` (string) - 描述请求失败的原因。

## Response examples

### 201

```json
{
  "project": [
    {
      "id": "xxxx",
      "name": "project1",
      "vendor_key": "4855xxxxxxxxxxxxxxxxxxxxxxxxeae2",
      "status": 1,
      "created": 1464165672
    }
  ]
}
```
### 非 201

```json
{
  "status": "error",
  "message": "string"
}
```
