Hi - the GUI for launch is a bit limiting when it comes to searching for items, or listing out large numbers of items. This is particularly bad when trying to search through the audit logs.
As such, I figured I'd use the API to get the full list of audit logs - this one: Launch Documentation
I've set up the IO integration, and generated all the necessary tokens.
I've filled out all the fields in the example request:
curl https://mc-api-activation-reactor-integration.adobe.io/audit_events \
-H "Accept: application/vnd.api+json;revision=1" \
-H "Content-Type: application/vnd.api+json" \
-H "Authorization: Bearer [TOKEN]" \
-H "X-Api-Key: [KEY]" \
-X GET
However, when I send the request I get the following:
{
"errors": [
{
"status": "403",
"code": "oauth-token-required",
"title": "Oauth token is missing",
"meta": {
"request_id": "**********n4MYwbXONMB2**********"
}
}
]
}
I'm not very experienced with APIs, and I'm sure it's something obvious I'm missing, but I don't know how to generate the OAuth token or how tto reference it once I do. And it's not mentioned in the documentation.
Thanks
Matt
Solved! Go to Solution.
Views
Replies
Total Likes
You bet. Just to be clear, try it with this endpoint.
https://mc-api-activation-reactor.adobe.io/audit_events
Here is what your curl command should look like (note: I have modified the bearer token and clientID, so this exact command will not actually work).
Views
Replies
Total Likes
Hi Matt,
There are two things missing in your API request. [TOKEN] and [KEY].
Essentially, in order to make API requests, you need to create an Integration (service account) in Adobe I/O.
That account has an API Key (aka client ID) which you would use where it says [KEY].
You will also need to generate a "bearer token" via JWT exchange and put that value in [TOKEN].
There is an instructional doc here: Launch Documentation
I hope this gets you going!
-Stew
Views
Replies
Total Likes
Hi Stew
Thanks for that - I've already done the steps you mention; sorry I took the example I copied above from the documentation rather than sharing my client ID and bearer token publicly.
I still get the error described.
Thanks
Matt
Views
Replies
Total Likes
Does your API endpoint include "-integration"
If so, try taking that out.
Views
Replies
Total Likes
I think so - https://mc-api-activation-reactor-integration.adobe.io/audit_events
Thanks for looking into this for me.
Matt
Views
Replies
Total Likes
You bet. Just to be clear, try it with this endpoint.
https://mc-api-activation-reactor.adobe.io/audit_events
Here is what your curl command should look like (note: I have modified the bearer token and clientID, so this exact command will not actually work).
Views
Replies
Total Likes
I'll give it a go and come back to you. I'll likely need to re-generate my bearer token first as I think they expire after 24 hours.
Thanks
Matt
Views
Replies
Total Likes
Hey - thanks, that worked. I'd got it into my head they went into the "body" rather than "header". I saved your example as json and imported it, then replaced it with my values :-)
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies