Assistance Needed with the /universe/ids/ Endpoint in ESI API


I am experiencing persistent issues with the /universe/ids/ endpoint of the EVE Online ESI API and seek guidance on the correct way to format the request, specifically the names field in the JSON body.


Method: POST

Issue: Despite following the API documentation, each request consistently returns the error: "Invalid body JSON type, 'names' is required". This occurs even when the ‘names’ field is seemingly included correctly in the request body.

Request Format Tried:

  • Headers:
    • Content-Type: application/json
    • Accept-Language: en
  • Body (JSON): {"names": ["ExampleName"]}

I have tried various formats and configurations, ensuring that the names key is present and correctly structured as per the API documentation. However, the error persists.

Could there be an issue with the endpoint, or am I missing a specific formatting requirement? An example of the correct format or any specific insights would be greatly appreciated.

Thank you in advance for your assistance.

Try with body as: ["CCP Zoetrope"] (No { "names": })

Also, using a library to interact with ESI will save you a lot of trouble:

A little extra tip: Using the WebUI EVE Swagger Interface you can see the curl command:
curl -X POST "" -H "accept: application/json" -H "Accept-Language: en" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d "[ \"CCP Zoetrope\"]" which shows the correct format

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