Make an api call with customer.io

Hello Makers,

I am trying to make an api call to custom.io but facing this error message: Invalid Access Token. I have faced similar erros before when the api has a bearer token. Can anyone suggest what I should do to make it work. For reference, here’s the customer.io documentation: https://customer.io/docs/api/app/#tag/Segments

Welcome to the Make community!

According to the customer.io documentation page on Authentication,

To authenticate, provide your key as a Bearer token in a HTTP Authorization header.

You can generate a bearer token, known as an App API Key, with a defined scope in your account settings.

If you need further assistance, please provide the following:

  • Screenshots of the connection setup step

  • Screenshots of the page where you got your token

2 Likes

@samliew I believe I have created a bearer token through the app api key. Here’s a screenshot.

Make scenario:


Customer.io api:

Looks like you are sending an empty body if you are trying to Create Manual Segment.

Are you intending to List Segments instead?

Screenshot_2024-04-11_123539

Both are wrong in your HTTP module.

2 Likes

@Kazi_Hassan1 In http url it should be “/v1/segments”

You have added “api” in between. And if you are trying to add segment. Then it must be create request ans there should be something in your body. But your make an api call body seems empty.

Princy Jain
Make consultant,
For consulting support: Follow up Automated

2 Likes