Workflow - Certification

Hello All,

Schedule a trigger to get the campaign details by name in a workflow.

Could you please let me know what I might be doing wrong here?
Request URL:

https://tennant.com/v3/campaigns

Filter:
name eq “name of the campaigns”

Screen shot is below

Thanks,
Anirban

Hi @AllIT

Request URL: https://tenant.api.identitynow.com/v3/campaigns
Auth Type: OAuth 2.0 Client Credentials Grant

Hope this help.

Yes, the Request URL in the HTTP Request action needs to point to the API gateway, not the tenant UI or vanity hostname.

Use:
https://{tenant}.api.identitynow.com/v3/campaigns

not:
https://tenant.com/v3/campaigns

Your filter format looks fine. The List Campaigns API supports filtering by name using eq or sw, so filters=name eq "Exact Campaign Name" should work.

The next thing to check is authentication. The HTTP Request action doesn’t automatically inherit your tenant’s auth context. You’ll need to configure it with OAuth 2.0 Client Credentials Grant using the Client ID and Client Secret from a PAT. That PAT needs to belong to a user with ORG_ADMIN or CERT_ADMIN rights, since those are what the campaigns endpoint requires.

Also double-check that the quotes around the campaign name are straight quotes ("..."), not smart quotes. The workflow editor can sometimes auto-format those, and the API won’t recognize them.

Hi @AllIT
You can configure it as below:

  1. In the HTTP Request action, choose Authentication as OAuth 2.0 - Client Credentials Grant.

  2. Under OAuth 2.0 Parameters, click Create New Parameter and configure:

    • Category: Authentication

    • Type: OAuth 2.0 - Client Credentials Grant

    • Token URL: https://<tenant>.api.identitynow.com/oauth/token

    • Client ID: Your OAuth Client ID

    • Client Secret: Your OAuth Client Secret

    • Credential Location: Header

  3. Set the Request URL to:
    https://<tenant>.api.identitynow.com/v3/campaigns

  4. Add the query parameter:

    • Key: filters

    • Value: name eq "Campaign Name"

@AllIT - Please share workflow json. if it is not type error keeping URL: https://tenant.api.identitynow.com/v3/campaigns. url is missing .api.