+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "BackendSrv"
keywords = ["grafana","documentation","sdk","@grafana/runtime"]
type = "docs"
draft = true
+++
## BackendSrv interface
Signature
```typescript
export interface BackendSrv
```
Import
```typescript
import { BackendSrv } from '@grafana/runtime';
```
Methods
| Method | Description |
| --- | --- |
| [datasourceRequest(options)](#datasourcerequest-method) | |
| [delete(url)](#delete-method) | |
| [get(url, params, requestId)](#get-method) | |
| [patch(url, data)](#patch-method) | |
| [post(url, data)](#post-method) | |
| [put(url, data)](#put-method) | |
| [request(options)](#request-method) | |
### datasourceRequest method
Signature
```typescript
datasourceRequest(options: BackendSrvRequest): Promise;
```
Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| options | BackendSrvRequest
| |
Returns:
`Promise`
### delete method
Signature
```typescript
delete(url: string): Promise;
```
Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| url | string
| |
Returns:
`Promise`
### get method
Signature
```typescript
get(url: string, params?: any, requestId?: string): Promise;
```
Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| url | string
| |
| params | any
| |
| requestId | string
| |
Returns:
`Promise`
### patch method
Signature
```typescript
patch(url: string, data?: any): Promise;
```
Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| url | string
| |
| data | any
| |
Returns:
`Promise`
### post method
Signature
```typescript
post(url: string, data?: any): Promise;
```
Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| url | string
| |
| data | any
| |
Returns:
`Promise`
### put method
Signature
```typescript
put(url: string, data?: any): Promise;
```
Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| url | string
| |
| data | any
| |
Returns:
`Promise`
### request method
Signature
```typescript
request(options: BackendSrvRequest): Promise;
```
Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| options | BackendSrvRequest
| |
Returns:
`Promise`