# Authorizing ActiveCampaign API in Astera

The ActiveCampaign API is structured around REST, HTTP, and JSON. You can make requests by using URL endpoints particular to a specific resource. The resources in ActiveCampaign are represented in JSON following a conventional schema. In Astera, you can configure an ActiveCampaign API using the *Import API* option present in the REST API Browser.

ActiveCampaign does not provide an Open API definition so we will add a request manually by using a Custom API in Astera.

To authorize an ActiveCampaign API in Astera, follow these steps:

1. Create an integration project in Astera.
2. Create a *Custom API* and provide *Base Url*.

Reference link for Base Url: <https://developers.activecampaign.com/reference#url>

![](/files/SOZ05tBQkydFakxsZZ8O)

3. Now, you need to authenticate the ActiveCampaign APIs to use them in your dataflow. Without authentication, you will get an error. To authenticate an API, go to the Project Explorer and double-click on the API’s .sact file under the *Shared Connection* node.

![](/files/d25m6wF4S70NTi0C7uC5)

The *ActiveCampaign* .sact file will open in the designer. Now, right-click the shared action file’s header and select *Properties*.

![](/files/eXIIkBrtgCJQmHOZuA73)

4. ActiveCampaign uses an *API Key* as a *Security Type.* Specify your *Key* and *Value*.

* *Key*: API-Token
* *Value*: {Token}

![](/files/YtDYtZ7LUFM5ALgcbqL2)

5. Click *OK*, and save the shared action file (.sact).
6. Add methods in the REST API Browser panel that you want to use in Astera by adding requests, and you are ready to use the ActiveCampaign API in Astera.

This concludes authorizing the ActiveCampaign API in Astera.


---

# Agent Instructions: 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:

```
GET https://documentation.astera.com/astera-data-stack-v9/api-flows/api-consumption/authorize/authorizing-activecampaign-api-in-astera.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
