# 一言文案api

## 【简介】

本接口基于一言开源项目开发，接入开放平台

[点击这里](https://open.wjlo.cc/wenan/reg) 申请该项目的appid

## &#x20;请求文案

<mark style="color:blue;">`GET`</mark> `https://open.wjlo.cc/wenan/1.0/get`

#### Path Parameters

| Name  | Type   | Description |
| ----- | ------ | ----------- |
| appid | string | 开放平台应用appid |

{% tabs %}
{% tab title="200 正常请求返回内容 " %}

```
{
"status":"200",
"cid":"4872",
"type":"其他",
"content":"吾生三愿，纯朴却激越:一曰渴望爱情，二曰求索知识，三曰悲悯吾类之无尽苦难。",
"from":"网络"
}
```

{% endtab %}

{% tab title="403  请求参数中找不到appid，属于非法访问" %}

```
{
"status": "403",
"type": null,
"content": null,
"from": null
}
```

{% endtab %}

{% tab title="404  找不到appid" %}

```
{
"status": "404",
"type": null,
"content": null,
"from": null
}
```

{% endtab %}
{% endtabs %}

## 【返回内容】

| 参数      | 说明         |
| ------- | ---------- |
| status  | 提示请求状态     |
| cid     | 文案在数据库中的编号 |
| type    | 文案类型       |
| content | 文案内容       |
| from    | 文案来源       |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wjlo.cc/open/openwenan.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
