> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.liquifyfin.in/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.liquifyfin.in/_mcp/server.

# Check the token and this API's grant

GET https://a7.liquifyfin-uat.in/v1/ping

Answers only past both checks, so a 200 proves the token and the grant. Touches nothing.

Reference: https://docs.liquifyfin.in/api-reference/liquify-vendor-api/platform/ping

## Authentication

- `Authorization` header (bearer token, required) — The token Liquify issued your organisation. Shown once; rotate it from Liquify if it is exposed.

## Response

### 200

The token and the grant are good.

- `data` (Ping, required)
- `meta` (Meta, required)

## Errors

### 401 Unauthorized Error

`AUTH_INVALID_TOKEN` — no token, an unknown token, or your access is switched off.

- `type` (string, required) — `about:blank` — `code` carries the meaning.
- `title` (string, required)
- `status` (integer, required)
- `detail` (string, optional)
- `instance` (string, optional)
- `code` (string, optional)
- `errors` (list of string, optional) — One entry per field that failed validation.
- `request_id` (string, optional) — Quote it to Liquify support.
- `trace_id` (string, optional)

### 403 Forbidden Error

`ACCESS_DENIED` — this API is not switched on for you; `CONSENT_REQUIRED` — the customer has not granted (or withdrew) a purpose this call needs.

- `type` (string, required) — `about:blank` — `code` carries the meaning.
- `title` (string, required)
- `status` (integer, required)
- `detail` (string, optional)
- `instance` (string, optional)
- `code` (string, optional)
- `errors` (list of string, optional) — One entry per field that failed validation.
- `request_id` (string, optional) — Quote it to Liquify support.
- `trace_id` (string, optional)

### 429 Too Many Requests Error

Rate limited. Liquify's limits answer a problem (`MF_SYNC_RATE_LIMITED` is the customer's sync cooldown); the edge's per-caller limit answers with NO body. Either way, wait `Retry-After` seconds.

- `type` (string, required) — `about:blank` — `code` carries the meaning.
- `title` (string, required)
- `status` (integer, required)
- `detail` (string, optional)
- `instance` (string, optional)
- `code` (string, optional)
- `errors` (list of string, optional) — One entry per field that failed validation.
- `request_id` (string, optional) — Quote it to Liquify support.
- `trace_id` (string, optional)

## Types

### Ping

- `vendor_code` (string, required)
- `api` (string, required)

### Meta

- `request_id` (string, required) — Ties a call to Liquify's records; quote it to support.
- `ts` (datetime, required)

## Examples

**Response**

```json
{
  "data": {
    "vendor_code": "string",
    "api": "PING"
  },
  "meta": {
    "request_id": "string",
    "ts": "2024-01-15T09:30:00Z"
  }
}
```

**SDK Code**

```python
import requests

url = "https://a7.liquifyfin-uat.in/v1/ping"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://a7.liquifyfin-uat.in/v1/ping';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://a7.liquifyfin-uat.in/v1/ping"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://a7.liquifyfin-uat.in/v1/ping")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://a7.liquifyfin-uat.in/v1/ping")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://a7.liquifyfin-uat.in/v1/ping', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://a7.liquifyfin-uat.in/v1/ping");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://a7.liquifyfin-uat.in/v1/ping")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```