> For the complete documentation index, see [llms.txt](https://fragmentdevelopment.gitbook.io/fivem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fragmentdevelopment.gitbook.io/fivem/paid-scripts/api/installation/api-lua.md). Agents can also search and read this documentation through its [MCP server](https://fragmentdevelopment.gitbook.io/fivem/~gitbook/mcp).

# API LUA

1. Go to[ ](https://portal.cfx.re/assets/granted-assets)<https://portal.cfx.re/assets/granted-assets>, download CS\_API and drag it into your resources folder.
2. Make sure to start the resource if it isn't being started already by adding `ensure cs_api`  at the end of your server.cfg file.

### Setting up API LUA

1. Go to **@cs\_api/settings/** and open **settings.lua.**
2. Go to **Settings.Requests** and paste in **authorization** the authorization key you previous generated in the installation of API TS.

That's it!
