# 渠道API Out说明文档

Hugoffers 对于渠道端提供了API-OUT功能。

当你在Affiliate界面添加了新的渠道，系统在API-OUT中会自动生成一条记录。你只需要配置一下信息，即可开启。

<img src="https://cdn.nlark.com/yuque/0/2020/png/2501264/1600066341106-12cd5962-ba25-478a-8559-7dcdd5baa9d4.png" alt="" width="105">

<br>

在你想要编辑的渠道API后面点击Edit选项，会看到以下表单

<img src="https://cdn.nlark.com/yuque/0/2020/png/2501264/1600066340483-e5e7bea1-8263-42d8-bb20-d245f474cede.png" alt="" width="562">

**Token**：点击Generate Token，系统将会自动随机生成独特标识。将此token交给渠道。注意，token生成后点击最下方的submit按钮才会保存。

**Offer Feed Url**：这个URL是让渠道拉单子的，你可以复制到自己的浏览器里回车来测试是否成功拉取到了单子的信息。每点一下Generate按钮，系统会自动随机生成一个token，token要交给渠道，填写进他们自己的系统中。token将填充进URL中。

**生成api**

当渠道在他们的系统发出请求后，如果你已经approve此api，HugOffers系统将会自动拉取到渠道的信息。

**Manage API**

你可以在列表中看到API的信息。

<img src="https://cdn.nlark.com/yuque/0/2020/png/2501264/1600066341173-63f71b76-0467-4f40-9b50-f51857ad216f.png" alt="" width="1654">

**Account Status**：指的是这个API-OUT的渠道状态

**API Out Status**：指的是这个渠道API的状态，包括Active和Block

Active：意味着这个API是开启状态。

Block：意味着这个API是关闭的状态，在此状态下，渠道将不能通过API拉取单子的信息。

**Search**

你可以通过下列维度去搜索API-OUT

<img src="https://cdn.nlark.com/yuque/0/2020/png/2501264/1600066725730-e6e7d918-73f2-4b07-8adb-0d8b823935e6.png" alt="" width="819.5">

<br>

**Operate**

<img src="https://cdn.nlark.com/yuque/0/2020/png/2501264/1600066341946-e9f6a2b1-092a-43c7-bce8-2cd6b5f65752.png" alt="" width="126">

点击Inactive或者Active切换API开启或者关闭状态

点击Edit可以修改API信息

注释：如果你在Affiliate界面点击Account Block，系统会自动帮你把对应的API状态改为inactive。

提示:

* 在生成token并提交API信息后，系统会自动发送API的详情和文档链（setting/document）到渠道的账户邮箱中。
* 你可以在开给渠道时，筛选国家、平台、单价等等。只过滤出这些条件的单子给渠道。


---

# 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://support.hugoffers.com/zhong-wen-shuo-ming-wen-dang/hugoffers-xiang-xi-shuo-ming-wen-dang/qu-dao-pian/qu-dao-api-out-shuo-ming-wen-dang.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.
