> This page is for RakeSign.

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

# Post inspect

POST https://api.cloudraker.com/v1/signing/inspect
Content-Type: multipart/form-data

Uses the same resource permissions and lifecycle as the RakeSign application. Integration access is limited to its shared team. Required scopes: documents:read.

Reference: https://docs.cloudraker.com/rakesign/api/rake-sign/signing-post-inspect

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Body (multipart/form-data)

This endpoint expects a multipart form containing a file.

- `file` (file, required)

## Response

### 200

Authorized signing resource.

- `pageCount` (integer, required) — Pages in the document.
- `pages` (list of V1SigningInspectPostResponsesContentApplicationJsonSchemaPagesItems, required) — Each page in order, for laying out a page you have not rendered yet. Pages in one document can differ in size.
- `fields` (list of V1SigningInspectPostResponsesContentApplicationJsonSchemaFieldsItems, required) — Every placeholder marker found in the document, in no particular order. A document with no markers returns an empty array.

## Errors

### 400 Bad Request Error

The request could not complete.

- `code` (string, required)
- `message` (string, required)
- `retryable` (boolean, required)
- `requestId` (string, required)
- `docUrl` (string, optional)

### 401 Unauthorized Error

The request could not complete.

- `code` (string, required)
- `message` (string, required)
- `retryable` (boolean, required)
- `requestId` (string, required)
- `docUrl` (string, optional)

### 403 Forbidden Error

The request could not complete.

- `code` (string, required)
- `message` (string, required)
- `retryable` (boolean, required)
- `requestId` (string, required)
- `docUrl` (string, optional)

### 404 Not Found Error

The request could not complete.

- `code` (string, required)
- `message` (string, required)
- `retryable` (boolean, required)
- `requestId` (string, required)
- `docUrl` (string, optional)

### 409 Conflict Error

The request could not complete.

- `code` (string, required)
- `message` (string, required)
- `retryable` (boolean, required)
- `requestId` (string, required)
- `docUrl` (string, optional)

### 429 Too Many Requests Error

Rate limited. The `/v1` API allows at least **67 requests per minute per organization** (about 1,000 requests per 15 minutes) — a guaranteed floor, enforced per edge location, so a geographically spread caller may get more. Wait for the `Retry-After` interval and retry — the error is `retryable`.

- `code` (enum, required)
  - Allowed values: `rate_limited`
- `message` (string, required)
- `retryable` (boolean, required)
- `requestId` (string, required)
- `docUrl` (string, optional)

### 503 Service Unavailable Error

The request could not complete.

- `code` (string, required)
- `message` (string, required)
- `retryable` (boolean, required)
- `requestId` (string, required)
- `docUrl` (string, optional)

## Types

### V1SigningInspectPostResponsesContentApplicationJsonSchemaPagesItems

- `width` (double, required) — Page width in points.
- `height` (double, required) — Page height in points.

### V1SigningInspectPostResponsesContentApplicationJsonSchemaFieldsItems

- `kind` (enum, required) — The marker this came from: `[Signature N]`, `[Initials N]` or `[Date N]`, or their short forms.
  - Allowed values: `signature`, `initials`, `date`
- `slot` (integer, required) — The `N` in the marker. `signers[0]` signs slot 1, `signers[1]` slot 2, matched by position.
- `page` (integer, required) — The page holding the marker, counting from 1.
- `marker` (V1SigningInspectPostResponsesContentApplicationJsonSchemaFieldsItemsMarker, required) — The marker itself: how it is written, and where that text sits in the document.
- `box` (V1SigningInspectPostResponsesContentApplicationJsonSchemaFieldsItemsBox, required, nullable) — Where the output prints: the seal for a signature, the written text for initials and a date. `null` only when `status` is `off_page`.
- `status` (enum, required) — How this marker will print. - `ok`: prints at full size, clear of everything. - `shrunk`: prints smaller, either to clear nearby content or to match the other signatures in the document. - `overlaps_text`: nothing clears at any corner, so it prints at its smallest over the text beneath. The sender decides whether that is acceptable. - `overlaps_field`: it prints over another marker's output, because the two sit close enough that both claim the same space. A date is written in full, so it reaches well past its own marker. A slight clip is not reported, only an overlap taking at least a tenth of the smaller box. This is a warning. Only `overlapsSignature` stops a send. - `off_page`: no room on the page at any corner. This status stops a send.
  - Allowed values: `ok`, `shrunk`, `overlaps_text`, `overlaps_field`, `off_page`
- `overlapsSignature` (boolean, required) — True when this signature prints over the signature of another marker. Placement has tried every size and corner for both, so no layout keeps them apart. This stops a send: move one of the two markers to its own line. Always false for initials and a date.

### V1SigningInspectPostResponsesContentApplicationJsonSchemaFieldsItemsMarker

The marker itself: how it is written, and where that text sits in the document.

- `x` (double, required) — Distance from the left page edge, 0 to 1.
- `y` (double, required) — Distance from the top page edge, 0 to 1.
- `width` (double, required) — Fraction of the page width, 0 to 1.
- `height` (double, required) — Fraction of the page height, 0 to 1.
- `text` (string, required) — The marker exactly as it is written in the document, for example `[Signature 1]` or `[S1]`. Name this, not a short form you build yourself, when telling a sender which marker to move: it is the only spelling a search of their PDF will find.

### V1SigningInspectPostResponsesContentApplicationJsonSchemaFieldsItemsBox

A rectangle as a fraction of its page, with the origin at the top-left corner.

- `x` (double, required) — Distance from the left page edge, 0 to 1.
- `y` (double, required) — Distance from the top page edge, 0 to 1.
- `width` (double, required) — Fraction of the page width, 0 to 1.
- `height` (double, required) — Fraction of the page height, 0 to 1.

## Examples

**Request**

```json
{
  "file": "<file: [object Object]>"
}
```

**Response**

```json
{
  "pageCount": 1,
  "pages": [
    {
      "width": 1.1,
      "height": 1.1
    }
  ],
  "fields": [
    {
      "kind": "signature",
      "slot": 1,
      "page": 1,
      "marker": {
        "x": 1.1,
        "y": 1.1,
        "width": 1.1,
        "height": 1.1,
        "text": "[Signature 1]"
      },
      "box": {
        "x": 1.1,
        "y": 1.1,
        "width": 1.1,
        "height": 1.1
      },
      "status": "ok",
      "overlapsSignature": true
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.cloudraker.com/v1/signing/inspect"

files = { "file": "open('[object Object]', 'rb')" }
headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, files=files, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.cloudraker.com/v1/signing/inspect';
const form = new FormData();
form.append('file', '[object Object]');

const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

options.body = form;

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"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.cloudraker.com/v1/signing/inspect"

	payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"[object Object]\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001--\r\n")

	req, _ := http.NewRequest("POST", url, payload)

	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://api.cloudraker.com/v1/signing/inspect")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"[object Object]\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001--\r\n"

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.post("https://api.cloudraker.com/v1/signing/inspect")
  .header("Authorization", "Bearer <token>")
  .body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"[object Object]\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001--\r\n")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.cloudraker.com/v1/signing/inspect', [
  'multipart' => [
    [
        'name' => 'file',
        'filename' => '[object Object]',
        'contents' => null
    ]
  ]
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.cloudraker.com/v1/signing/inspect");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddParameter("undefined", "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"[object Object]\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001--\r\n", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]
let parameters = [
  [
    "name": "file",
    "fileName": "[object Object]"
  ]
]

let boundary = "---011000010111000001101001"

var body = ""
var error: NSError? = nil
for param in parameters {
  let paramName = param["name"]!
  body += "--\(boundary)\r\n"
  body += "Content-Disposition:form-data; name=\"\(paramName)\""
  if let filename = param["fileName"] {
    let contentType = param["content-type"]!
    let fileContent = String(contentsOfFile: filename, encoding: String.Encoding.utf8)
    if (error != nil) {
      print(error as Any)
    }
    body += "; filename=\"\(filename)\"\r\n"
    body += "Content-Type: \(contentType)\r\n\r\n"
    body += fileContent
  } else if let paramValue = param["value"] {
    body += "\r\n\r\n\(paramValue)"
  }
}

let request = NSMutableURLRequest(url: NSURL(string: "https://api.cloudraker.com/v1/signing/inspect")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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()
```