# Guide to API Automation

**API** stands for application programming interface typically an API is used to facilitate the interaction between two different applications. The basic agenda of API testing is to check the request and response through the API are getting correctly or not.

**Terms Related to API Automation:**

**HTTP Method**: Hypertext Transfer Protocol (HTTP) is an application-layer protocol for transmitting hypermedia documents, such as HTML. It was designed for communication between web browsers and web servers, but it can also be used for other purposes.

The primary or most-commonly-used HTTP verbs (or methods, as they are properly called) are POST, GET, PUT, PATCH, and DELETE. These correspond to create, read, update, and delete (or CRUD) operations, respectively. There are a number of other verbs, too, but are utilized less frequently.

**Status Code:**

HTTP defines these standard status codes that can be used to convey the results of a client’s request. The status codes are divided into the five categories.

* 100: Informational – Communicates transfer protocol-level information.&#x20;
* 200: Success – Indicates that the client’s request was accepted successfully.
* 300: Redirection – Indicates that the client must take some additional action in order to complete their request.&#x20;
* 400: Client Error – This category of error status codes points the finger at clients.&#x20;
* 500: Server Error – The server takes responsibility for these error status codes.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.qatts.com/using-qatts/a-quick-tour-to-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
