# RestClient (/docs/rest/api/interfaces/RestClient)



[@kysoql/rest](/docs/rest/api) / RestClient

Minimal authenticated Salesforce REST client used by the query executor.

## Methods [#methods]

<a id="api-request" />

### request() [#request]

```ts
request(path, options?): Promise<unknown>;
```

GET a version-relative API path or a same-version /services/data/ path.

#### Parameters [#parameters]

| Parameter  | Type                                                         |
| ---------- | ------------------------------------------------------------ |
| `path`     | `string`                                                     |
| `options?` | [`RestGetOptions`](/docs/rest/api/interfaces/RestGetOptions) |

#### Returns [#returns]

`Promise`\<`unknown`>

## Properties [#properties]

| Property                                        | Modifier   | Type     | Description                                            |
| ----------------------------------------------- | ---------- | -------- | ------------------------------------------------------ |
| <a id="api-property-apiversion" /> `apiVersion` | `readonly` | `string` | Normalized Salesforce API version used by this client. |
