Forum Discussion

jfpelletier's avatar
jfpelletier
Contributor
2 years ago
Solved

Where can I get the query parameters when using a triggered task?

Hello all, I created a triggered task, and the system triggering the task sends a couple of query parameters that I need to use for the task. Can someone tell me how I can get the values passed as ...
  • ddellsperger's avatar
    8 months ago

    For TikTok Business, you'll want to use an OAuth2 Account (using the /oauth/token endpoint for the token collection) then you can add the custom header and reference the account's access token with account.access_token it will still be obfuscated in logs and details that we return back to you throughout the course of processing.

    For Semrush, you'll want to use the Secured Headers Account and while it will still put those headers into the request, Semrush SHOULD ignore them (I don't see anything that indicates otherwise), you can put the header in the Additional Auth Headers section with they key being key and value being your `API_KEY`, then you can refer to the key as account.key similar to the OAuth2 account. How you refer to it is how it's set up in your account, so if you use API_KEY as the key, you'll need to refer to it as account.API_KEY.