Appian Web APIs can be invoked by other systems or users to query or modify data within Appian, start a process, or download documents. For more information how to implement a Web API in which an external system retrieves data from Appian, try the Web API tutorial. For an example in which an external system sends data to Appian, try the other Web API tutorial.
There are some scenarios in which developers can design Web APIs in an Appian environment to be called from the same Appian environment. Always use an environment-specific constant when configuring the URL of the Web API in an Integration object. This ensures in Dev you are always referencing Dev, in Test you are always referencing Test, etc.