# Connect Your Account

## Get an API key

Create an API key, copy your `AccountSID` and `AuthToken`, and store them in a secret store.

* [Create an API Key](/rest-apis/api-quick-start/create-an-api-key.md)

### Make your first API call

Use HTTP Basic auth:

* Username: `AccountSID`
* Password: `AuthToken`

Pick the base path that matches your account type.

{% tabs %}
{% tab title="Brand" %}

```bash
curl -X GET "https://api.impact.com/Advertisers/{AccountSID}/Campaigns" \
  -u "{AccountSID}:{AuthToken}" \
  -H "Accept: application/json"
```

{% endtab %}

{% tab title="Partner" %}

```bash
curl -X GET "https://api.impact.com/MediaPartners/{AccountSID}/Campaigns" \
  -u "{AccountSID}:{AuthToken}" \
  -H "Accept: application/json"
```

{% endtab %}

{% tab title="Agency" %}

```bash
curl -X GET "https://api.impact.com/Agencies/{AccountSID}/Campaigns" \
  -u "{AccountSID}:{AuthToken}" \
  -H "Accept: application/json"
```

{% endtab %}
{% endtabs %}

### Explore your next steps

* [Authenticate](/rest-apis/wip-not-used-yet/authenticate.md)
* [Brand](/api-reference/brand.md)
* [Partner](/api-reference/partner.md)
* [Agency](/api-reference/agency.md)


---

# 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://integrations.impact.com/rest-apis/wip-not-used-yet/connect-your-account.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.
