Unable to launch an ACS-API Call

Avatar

Avatar
Validate 1
Level 3
arouillard44
Level 3

Likes

18 likes

Total Posts

53 posts

Correct reply

9 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 5
View profile

Avatar
Validate 1
Level 3
arouillard44
Level 3

Likes

18 likes

Total Posts

53 posts

Correct reply

9 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 5
View profile
arouillard44
Level 3

29-11-2017

Hello,

We have a problem to launch and ACS event with an API Call.

The Event (and event message) has been published and on the ACS environment but we still can't launch it from our BackOffice.

We did the JWT authentification to have a token, but still have a problem with the POST.

here you can find the error message:

"Bearer token of a technical account must be accompanied with a valid service token"

There is the test post event that we trying to launch with with POSTMAN:

POST https://energieperspective-mkt-stage2.campaign.adobe.com/rest/mcenergieperspective/EVTEpTestEvent

Content-Type: application/json

{"email":"aurelien@ep.fr","ctx":{}}

Could you help us to launch our transactionnal message with the API ?

We followed the documentation to launch an event, but do we make an error in our process ?

Best Regards,

Alexandre

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Employee
Vapsy
Employee

Likes

370 likes

Total Posts

726 posts

Correct reply

342 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Validate 1
Employee
Vapsy
Employee

Likes

370 likes

Total Posts

726 posts

Correct reply

342 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile
Vapsy
Employee

29-11-2017

Hi Alexandre,

You were using a wrong endpoint. You should be using AdobeIO end point.

I've located your support ticket and shared my inputs over there.

For everyone reading this post, please refer to documentation Adobe Campaign Standard API

Hope it helps.

Regards,
Vipul

Answers (5)

Answers (5)

Avatar

Avatar
Validate 1
Level 3
arouillard44
Level 3

Likes

18 likes

Total Posts

53 posts

Correct reply

9 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 5
View profile

Avatar
Validate 1
Level 3
arouillard44
Level 3

Likes

18 likes

Total Posts

53 posts

Correct reply

9 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 5
View profile
arouillard44
Level 3

30-11-2017

Hi Vipul,

Yes, I was calling the wrong endpoint. Thanks for your answer in the support ticket !

For everyone, it's not explicated in the docoumentation but the tenant is not the Organisation Name, you have to replace "Tenant" by your ACS instance name !

Could be usefull for others.

Best regards !

Avatar

Avatar
Boost 250
Employee
ramon_bisswanger
Employee

Likes

271 likes

Total Posts

397 posts

Correct reply

199 solutions
Top badges earned
Boost 250
Affirm 100
Give Back 25
View profile

Avatar
Boost 250
Employee
ramon_bisswanger
Employee

Likes

271 likes

Total Posts

397 posts

Correct reply

199 solutions
Top badges earned
Boost 250
Affirm 100
Give Back 25
View profile
ramon_bisswanger
Employee

21-05-2019

Hi,

the mcInstanceURL + eventID values you can see when you click "Preview API" on the transactional event page

Avatar

Avatar
Validate 1
Level 2
shridhar_sahu
Level 2

Likes

3 likes

Total Posts

36 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
shridhar_sahu
Level 2

Likes

3 likes

Total Posts

36 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
shridhar_sahu
Level 2

20-05-2019

Hi Vipul,

I am facing a similar issue while trying to send transactional message using adobe io.

Can you please help in understanding what should be the API URL. Currently I am using below URL:

https://mc.adobe.io/instanceURL/campaign/mcInstanceURL/eventID  -- This is as per acs document.

I believe the part having mcInstanceURL is going wrong.

Regards,

Subrat Sahu

Avatar

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

237 likes

Total Posts

1,109 posts

Correct reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

237 likes

Total Posts

1,109 posts

Correct reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile
florentlb
Level 10

04-12-2017

Thanks for the update Alexandre, I'll sent your comment over to the documentation team.

Florent

Avatar

Avatar
Validate 1
Employee
Vapsy
Employee

Likes

370 likes

Total Posts

726 posts

Correct reply

342 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Validate 1
Employee
Vapsy
Employee

Likes

370 likes

Total Posts

726 posts

Correct reply

342 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile
Vapsy
Employee

29-11-2017

Hi Alexandre,

ACS API can be called using two methods

  • By directly calling the ACS API - requires Basic authorization header
  • Through Adobe.IO - requires you to create an integration and generate JWT token

From the explanation you have shared here, the URL endpoint used suggests that you are going for method 1 i.e. calling API directly but then you are generating JWT token which is really not required here. It is required in method 2.

For method 1 you need to define a Basic Authorisation header which is missing in your case. It is very easy to generate it and fix the problem for you. However, it is a public forum and the steps beyond this point are risky to share on this forum with you.

Can you please log a support ticket and we will assist you over there with the missing point.

Please be aware that Engineering doesn't recommend using direct API calls to ACS endpoint. Recommended approach is to make use of Adobe.IO

Regards,
Vipul