> ## Documentation Index
> Fetch the complete documentation index at: https://docs.palico.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting Started

> The Palico REST API allows you to interact your Palico app from any application.

## Introduction

To interact with your Palico app, you will need the API URL and a service key. The service key is a JWT token that is used to authenticate your requests to the Palico API.

You can generate a service key from your Palico App project directory

<Tabs>
  <Tab title="Local Instance">
    ```bash theme={null}
    npm run palico generate apikey
    ```
  </Tab>

  <Tab title="Production Instance">
    ```bash theme={null}
    npm run palico generate apikey -s <jwt-secret>
    ```
  </Tab>
</Tabs>

You will need to pass the service key in the `Authorization` header of your requests. Here's an example of how you can call an agent using the Palico REST API with your application running on `http://localhost:8000`:

```bash theme={null}
curl -X GET http://localhost:8000/health \
-H "Authorization: Bearer YOUR_SERVICE_KEY"
```
