---
description: API endpoints related to our integration with Make
---

# Make

## Getting Started

All of our API endpoints relating to our endpoints start with the same base URL:

```
https://api.countercyclical.io/v1
```

_See the_ [_example_](https://docs.countercyclical.io/~/changes/ZwrMx5xpgOpgFGNOVADb/developers/authentication#example) _in our API documentation above for more information_

## Authentication

{% hint style="warning" %}
An API key is required in order to authenticate successfully between Make & Countercyclical. Please visit our Integrations page on the platform to generate your Make-specific API key: [https://dashboard.countercyclical.io/settings/workspace/integrations](https://dashboard.countercyclical.io/settings/workspace/integrations)



_This API is scoped purely to Make & cannot be used on any of Countercyclical's other publicly available API endpoints (otherwise a_ `401 Unauthorized` _response will be sent back)_
{% endhint %}

### Connecting Make & Countercyclical

<mark style="color:green;">`GET`</mark> `/integrations/make/auth`

Authenticate with Make on Countercyclical

**Headers**

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |

**Body**

| Name     | Type   | Description                                                                                               |
| -------- | ------ | --------------------------------------------------------------------------------------------------------- |
| `apiKey` | string | API key generated in the [make](../../../guides/integrations/make "mention") integration on our platform. |

**Response**

{% tabs %}
{% tab title="2xx" %}
```json
{
  "success": true,
  "emailAddress": "name@example.com",
  "activeWorkspace": "Workspace Name",
}
```
{% endtab %}

{% tab title="4xx" %}
```json
{
  "error": "Invalid or inactive API key"
}
```
{% endtab %}

{% tab title="5xx" %}
```json
{
  "error": "Server error validating API key"
}
```
{% endtab %}
{% endtabs %}

## Triggers

{% hint style="info" %}
Triggers are an event in Countercyclical (e.g., an Investment being created) that initiates a workflow in Make.



Learn more about Triggers in Make's Help Center
{% endhint %}

### Investments

<mark style="color:green;">`GET`</mark> `/integrations/make/triggers/investments`

Kicks off a Scenario in Make based on an Investment created in your workspace.

**Headers**

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |

**Query Parameters**

| Name     | Type   | Description                                                                                               |
| -------- | ------ | --------------------------------------------------------------------------------------------------------- |
| `apiKey` | string | API key generated in the [make](../../../guides/integrations/make "mention") integration on our platform. |

**Response**

{% tabs %}
{% tab title="2xx" %}
_Returns an array of_ [investments](../investments "mention") _in your Workspace._

```json
[
  {
    "id": "abc1234...",
    ...
  }
]
```
{% endtab %}

{% tab title="4xx" %}
```json
{
  "error": "Invalid request."
}
```
{% endtab %}

{% tab title="5xx" %}
```json
{
  "error": "Server error validating API key"
}
```
{% endtab %}
{% endtabs %}

## Actions

{% hint style="info" %}
Actions in Make are a task that is performed as part of the workflow (e.g., creating an Investment in Countercyclical)



Learn more about Actions in Make's Help Center
{% endhint %}

### Investments

#### Create a New Investment

<mark style="color:green;">`POST`</mark> `/integrations/make/actions/investments`

Creates a new Investment in your Countercyclical Workspace

**Headers**

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |

**Query Parameters**

| Name     | Value                                                                                                     |
| -------- | --------------------------------------------------------------------------------------------------------- |
| `apiKey` | API key generated in the [make](../../../guides/integrations/make "mention") integration on our platform. |

**Body**

<table><thead><tr><th>Name</th><th>Required</th><th width="178">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>tickerSymbol</code></td><td><mark style="color:green;">Yes</mark></td><td>string</td><td>The ticker symbol for a publicly-traded company (following <a href="https://www.nasdaqtrader.com/Trader.aspx?id=CQSSymbolConvention">NASDAQ Symbology</a> is recommended for best results)</td></tr></tbody></table>

**Response**

{% tabs %}
{% tab title="2xx" %}
_Returns the_ [investments](../investments "mention") _created from your Zapier Action._

```json
[
  {
    "id": "abc1234...",
    ...
  }
]
```
{% endtab %}

{% tab title="4xx" %}
```json
{
  "error": "Invalid request."
}
```
{% endtab %}

{% tab title="5xx" %}
```json
{
  "error": "Server error validating API key"
}
```
{% endtab %}
{% endtabs %}
