# Account

## REQUEST

### Endpoint

```url
https://stopbot.net/api/account?apikey={APIKEY}
```

### HTTP Method

```
GET
```

### **Description**

This endpoint is used to check the status of a package account using the provided API key. The request should be made using the GET method and include the API key as a parameter.

### **Parameter(s)**

* `apikey` (string, required): The API key provided to the user.

### &#x20;**Example Request**

```bash
CURL "https://stopbot.net/api/account?apikey=9ca6f45b2e9821b3a964c0f79cb67dc3"
```

## **Example Response**

### Success Response

If the HTTP response is 200 (success response), it will generate the following response:

```json
{
  "status": "success",
  "Apikey": "9ca6f45b2e9821b3a964c0f79cb67dc3",
  "Packages": "Silver Plan",
  "Quota": "65000",
  "Usage": "100",
  "ExpiredDate": "[UTC-0] 2023-06-23 03:51:32",
  "timeResponse": "2023-06-8 23:00"
}
```

### Description on successful response

* `status`: Response Status: The value is "success" if the request is successful.
* `token`: Account token sent in the response.
* `Packages`: Name of the active account package.
* `Quota`: Amount of available quota in the account package.
* `Usage`: Current usage amount.
* `ExpiredDate`: Date and time when the package will expire.
* `timeResponse`: Date and time when the response was sent.

### Failed Response

If the HTTP response is 400 or 401 (failed response), it will generate the following response:

```json
{
  "status": "failed",
  "timeResponse": "2023-06-8 23:00"
}
```

### Description on failed response:

* `status`: Response Status: The value is "failed" if the request fails.
* `timeResponse`: Date and time when the response was sent.

## Notes

* Please make sure to replace `apikey` with a valid API key.
* Check the value of the HTTP response to determine the appropriate response.
* Please note the date and time format used in the response.


---

# 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.stopbot.net/api-documentation/account.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.
