API V4 Unauthorised

I have setup a project and linked my adobe account. When I hit /v4/me I get my user information but when I hit any other endpoint I get unauthorised.

Hi, just making sure you are including the appropriate scopes in your request. It should be email, offline_access, additional_info.roles, openid, profile

Hi, Yes all scope is present in as part of my auth request.

Can you show some screenshots of what you are seeing?

Are you getting Unauthorized when hitting /accounts as well?

I figured it out. I had an error in my account_id value. Was a me error. While debugging though if I hit /accounts with all params i get the following:

{
    "errors": [
        {
            "title": "Invalid value",
            "source": {
                "pointer": "/after"
            },
            "detail": "Invalid cursor value"
        }
    ]
}

Removing the params makes the request work correctly.

Glad you got it working. I can confirm that the after=<opaque_cursor> returns that error for me as well, although all of the other params work correctly. I’ve passed this note on to the dev team to address. Thanks!

1 Like