Legacy Dev Forum Posts

 View Only

Sign Up

Client Credentials - Cronjob - Get all calls?

  • 1.  Client Credentials - Cronjob - Get all calls?

    Posted 06-05-2025 18:12

    Hopstad | 2017-11-07 09:57:01 UTC | #1

    Hello.

    Im using the Code Auth doing many things and its working fine.

    However, I need to do some cronjobs behind the scenes. Every 10 minute or so I need to check the last incoming calls and later handle these internally.

    So, then I need to use Client Credentials right?

    Problem is - Im getting "403 Forbidden" when doing for example a POST to "/api/v2/analytics/conversations/details/query"

    Is this possible to achieve in any way?

    Regards, M


    anon28066628 | 2017-11-07 14:31:46 UTC | #2

    Client Credentials clients are assigned explicit roles, since there is no user context (no user logging in). The role(s) you assign the oauth client must have the permissions required for the endpoints you're using. For conversation details query, the permission is here:

    POST /api/v2/analytics/conversations/details/query

    User making this call must have ANY of these permissions: analytics:conversationDetail:view


    system | 2017-12-08 14:32:07 UTC | #3

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 2066