Skip to main content
spoojary
Staff
Staff
Sep 21, 2023 6:25 PM UTC

Technical Tip: Invalid Request Response 'code' 10 in the API response

Description This article describes how to follow when there is a following error on FortiSandbox Invalid Request Response 'code' 10 in the API response.
Scope FortiSanbox.
Solution

If there is 'Invalid Request' response:

  1. Verify Endpoint and Method: Check the API documentation to ensure the URL and method are correct.
  2. Headers: Ensure all headers match what's required by the API.
  3. JSON Structure: Confirm there are no structural errors in the JSON payload.
  4. Credentials: Double-check that the 'user; and 'password' values are correct.
  5. Session Token: Make sure the session token is still valid.
  6. API Version: Confirm the version ('ver': '2.0') is supported.
  7. Use Tools: Consider using Postman or Insomnia for easier debugging.
  8. Review API Response: Check the full response for specific error hints.
    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