By default, the host and port (traffic) default to 0
and 8998, respectively.
You define the port when installing the Apigee Emulator, and the basepath and resource values when developing your API proxy.
Using curl to test your APIs
To test your APIs using curl, open the Terminal tab and execute a call to your API.
For example:
curl 0:8998/helloworld
Authenticating using an API key
If your API requires API key-based authentication:
Build and export the API product, developer, and developer app test resources, as described in Building test resources
Click Active developer apps in the Active test resources section of the Apigee Emulator and copy the consumerKey value (without the quotes) for the API product, as shown in the following figure.
Pass the API key in your curl call, as required by your API. For example, the following curl call passes the API key in the apikey query parameter:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003eThis page provides guidance on testing APIs within both Apigee and Apigee hybrid environments.\u003c/p\u003e\n"],["\u003cp\u003eThe URL for an API proxy endpoint is found within the "emulators" section under "Active deployments" and typically consists of a host and port, basepath, and resource.\u003c/p\u003e\n"],["\u003cp\u003eYou can test APIs using curl by opening the "Terminal" tab and executing a call to your API endpoint, with examples provided.\u003c/p\u003e\n"],["\u003cp\u003eAPI key-based authentication can be implemented by building and exporting relevant test resources, such as API products, developers, and developer apps, and passing the \u003ccode\u003econsumerKey\u003c/code\u003e value in the curl request.\u003c/p\u003e\n"],["\u003cp\u003eBefore testing an API, it may be necessary to create and export a test set of resources, mirroring a production environment, such as API products, developers, and apps.\u003c/p\u003e\n"]]],[],null,[]]