Skip to main content
khanchand
Explorer II
Oct 8, 2024 6:15 AM UTC
Solved

Cortex XDR Integration error

Hello Community,

 

We are facing an issue in cortex XDR integration error. (Screenshot attached). API has admin rights assigned. Does anyone face same error.

    RenuAndh
    RenuAndhAnswer
    Staff
    Oct 9, 2024 9:54 AM UTC

    Can you try running above curl command removing -d '{}' and check. And also from connector actions try running action "Fetch Incidents" if this runs successful. 

    Also check this curl command works:
    curl -k -X POST https://api-yourfqdn/public_api/v1/incidents/get_incidents -H "x-xdr-auth-id:{API_KEY_ID}" -H "Authorization:{API_KEY}" -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{"request_data": {}}'

    6 replies

    RenuAndh
    Staff
    Staff
    Oct 8, 2024 6:25 AM UTC

    HI @khanchand,

    Can you specify Which authentication type you are selecting ?

    khanchand
    khanchandAuthor
    Explorer II
    Oct 8, 2024 6:34 AM UTC

    Hi Renu,

    Its Standard Key. And same is selected in Cortex while creating the key.

    RenuAndh
    Staff
    Staff
    Oct 8, 2024 9:22 AM UTC

    Can you try running this curl command to check with valid credentials:
    curl -X POST https://api-{fqdn}/public_api/v1/distributions/get_versions/ -H "x-xdr-auth-id:{API_KEY_ID}" -H "Authorization:{API_KEY}" -H "Content-Type:application/json" -d '{}'

     

    khanchand
    khanchandAuthor
    Explorer II
    Oct 8, 2024 12:40 PM UTC

    attaching the output screenshot

    RenuAndh
    Staff
    RenuAndhAnswer
    Staff
    Oct 9, 2024 9:54 AM UTC

    Can you try running above curl command removing -d '{}' and check. And also from connector actions try running action "Fetch Incidents" if this runs successful. 

    Also check this curl command works:
    curl -k -X POST https://api-yourfqdn/public_api/v1/incidents/get_incidents -H "x-xdr-auth-id:{API_KEY_ID}" -H "Authorization:{API_KEY}" -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{"request_data": {}}'

    khanchand
    khanchandAuthor
    Explorer II
    Oct 10, 2024 5:29 AM UTC

    Hi Renu,

     

    Its working now by generating another API account.

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT