Chrissisbeast
Chrissisbeast

Reputation: 51

Aweber API - /subscribers endpoint not working

I have a problem reaching the /subscribers endpoint of the Aweber API, when I try to use it, I get this as a result: enter image description here

which usually speaks for itself and it means the access token is ivalid or expired, but when I try to access the /accounts endpoint of the api with the same token, the request goes through: enter image description here

Both requests are using the same header which uses Bearer ${Access token}: enter image description here

just for more info, this is the error code from /subscribers call: enter image description here

I also added all possible scopes for the auth: enter image description here

Upvotes: 2

Views: 131

Answers (1)

TomKulzer
TomKulzer

Reputation: 1

Be sure that your app is requesting and has the correct authentication Scopes to get access to the subscribers endpoint.

Specifically:

subscriber.read - Retrieve subscribers and their activity Required for the following endpoints: get subscribers, get subscriber, get > subscriber activity, get subscribers for message, find subscribers for > account, find subscribers for list

See the api docs about different security scopes at https://api.aweber.com/#tag/Authentication-Overview

Upvotes: 0

Related Questions