> For the complete documentation index, see [llms.txt](https://raia2.gitbook.io/raia/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://raia2.gitbook.io/raia/raia-cx/agent-skills/agent-api-integration-skill.md).

# Agent API Integration Skill

<figure><img src="https://1905631084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEwGkQrKpAAj0jhmC3fkJ%2Fuploads%2F0C28r9HX3SiiKl45KgaO%2Fimage.png?alt=media&amp;token=7f6c1cd5-caaa-4178-aa0c-b7cca3007671" alt=""><figcaption></figcaption></figure>

## Able to Update API Key

<figure><img src="https://1905631084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEwGkQrKpAAj0jhmC3fkJ%2Fuploads%2FN94dHDPWB4vTFwyWoAM3%2Fimage.png?alt=media&amp;token=922020bf-1278-4030-87ab-f1278afa6355" alt=""><figcaption></figcaption></figure>

Clicking **"Update API Key"** saves the new key and tells the app to use it for future requests. It's used when replacing an old, expired, or compromised API key.

## API Documentation

For more Information on raia's API, you are able to access our [API Documentation](https://api.raia2.com/api/external/docs/).

<figure><img src="https://1905631084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEwGkQrKpAAj0jhmC3fkJ%2Fuploads%2FqZReeiFiCQzZu2xj5w0G%2Fimage.png?alt=media&amp;token=3613a9e5-f68b-491d-8f7f-b33801cdf9ce" alt=""><figcaption></figcaption></figure>

## [API Setup Video](https://www.youtube.com/watch?v=xwRKF_VovT8)

{% embed url="<https://www.youtube.com/watch?v=xwRKF_VovT8>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://raia2.gitbook.io/raia/raia-cx/agent-skills/agent-api-integration-skill.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
