# Provider List

This is an API endpoint for retrieving the list of game providers.

## **Endpoint**

```
POST https://api.nexusggr.com
```

## **Request Body**
```json
{
    "method": "provider_list",
    "agent_code": "testAgent",
    "agent_token": "41f5cc794aef2b138c715cf25f767cc1"
}
```
<table><thead><tr><th width="183">Key</th><th width="145">Type</th><th>Description</th></tr></thead><tbody><tr><td>method</td><td>string</td><td>The method type ( <code>provider_list</code>)</td></tr><tr><td>agent_code</td><td>string</td><td>The agent's code</td></tr><tr><td>agent_token</td><td>string</td><td>The agent's authentication token</td></tr></tbody></table>

## **Success Response Example**

```json
{
  "status": 1,
  "code": 7777777,
  "msg": "SUCCESS",
  "providers": [
    {
      "code": "PRAGMATIC",
      "name": "Pragmatic Play",
      "type": "slot",
      "status": 1
    }
  ]
}
```

| Key       | Type            | Description                   |
| --------- | --------------- | ----------------------------- |
| status    | integer (32bit) | `1` – Success, `0` – Failure  |
| code      | integer (32bit) | `7777777` – Success           |
| msg       | string          | Response message              |
| providers | array           | List of available providers   |
| code      | string          | Provider code                 |
| name      | string          | Provider name                 |
| type      | string          | Provider type, e.g. `slot`    |
| status    | integer (32bit) | `1` – Open, `0` – Maintenance |

***

## **Failure Response Example**

```json
{
  "status": 0,
  "code": 7770500,
  "msg": "Internal Error"
}
```

| Key    | Type            | Description   |
| ------ | --------------- | ------------- |
| status | integer (32bit) | `0` – Failure |
| code   | integer (32bit) | Error code    |
| msg    | string          | Error message |
