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

# Integrate in your apps

> Embed Blaxel agents into your applications, websites, Slack workspaces, and other communication platforms using inference endpoints and SDKs.

An agent deployed on Blaxel can be consumed through various downstream applications, including web apps and front-end UIs.

## Integrate in your application

You’ll need:

* An **API key**: generate an [API key for a service account in your workspace](../Security/Service-accounts). Permissions will be scoped to the permissions given to the service account.
* The [**inference URL**](/Agents/Query-agents) for the agent.

Use these code snippets to integrate your agent in your JavaScript, TypeScript or Python applications.

<Warning>Make sure to not expose your API key publicly.</Warning>

<CodeGroup>
  ```javascript JavaScript theme={null}
  const response = await fetch("https://run.blaxel.ai/YOUR-WORKSPACE/agents/YOUR-AGENT", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
      "Authorization": `Bearer <YOUR_API_KEY>`
    },
    body: JSON.stringify({
      inputs: "Hello, world!"
    })
  });

  const data = await response.text();
  console.log(data);

  ```

  ```typescript TypeScript theme={null}

  const response = await fetch("https://run.blaxel.ai/YOUR-WORKSPACE/agents/YOUR-AGENT", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
      "Authorization": `Bearer <YOUR_API_KEY>`
    },
    body: JSON.stringify({
      inputs: "Hello, world!"
    })
  });

  const data: string = await response.text();
  console.log(data);

  ```

  ```python Python theme={null}

  import requests

  response = requests.post(
      "https://run.blaxel.ai/YOUR-WORKSPACE/agents/YOUR-AGENT",
      headers={
          "Content-Type": "application/json",
          "Authorization": "Bearer <YOUR_API_KEY>"
      },
      json={
          "inputs": "Hello, world!"
      }
  )

  data = response.text
  print(data)

  ```
</CodeGroup>

## Downstream integrations

Below you'll find examples of tested integrations that show how to use your agents with external services.

<CardGroup cols={2}>
  <Card title="n8n" icon="diagram-project" href="../Tutorials/n8n">
    Orchestrate Blaxel agents using n8n workflows.
  </Card>
</CardGroup>
