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

# Endpoints capability

**Developer**

**Federal docs**

**EU docs**

This topic explains how to use the endpoints integration framework capability.

## About endpoints

Some capabilities require you to specify an endpoint that LaunchDarkly can make requests to. For example, you can specify an endpoint as follows:

```json title="Endpoint example" lines wrap theme={null}
    "endpoint": {
        "url": "{{endpointUrl}}",
        "method": "POST",
        "headers": [
            {
                "name": "Content-Type",
                "value": "application/json"
            },
            {
                "name": "Authorization",
                "value": "Bearer {{apiToken}}"
            }
        ]
    },
```

This specification must include all appropriate request semantics including the URL, method, and headers.

In the example above, the properties `endpoint.url` and `endpoint.headers[].value` accept template variables. These template variables can reference any `formVariables` you've defined in your manifest. This lets you configure a dynamic endpoint based on the `formVariables` your integration collects from the end user. To learn more, read [Using form variables](https://launchdarkly.com/docs/integrations/partner-integrations/form-variables.md).

The templating language LaunchDarkly uses is based off of a subset of the Handlebars syntax. To learn more, read the [Handlebars documentation](https://handlebarsjs.com/).

This example uses the `endpointUrl` form variable as the URL of the endpoint and the `apiToken` as a `Bearer` token in the `Authorization` header:

```json title="Endpoint example" lines wrap theme={null}
    "endpoint": {
        "url": "{{endpointUrl}}",
        "method": "POST",
        "headers": [
            {
                "name": "Content-Type",
                "value": "application/json"
            },
            {
                "name": "Authorization",
                "value": "Bearer {{apiToken}}"
            }
        ]
    },
```

This example uses the `apiToken` form variable as a query parameter on the URL:

```json title="Endpoint example" lines wrap theme={null}
    "endpoint": {
        "url": "https://example.com/apiToken?={{apiToken}}",
        "method": "POST"
    },
```
