# Interface: GenerateDatabaseCredentialRequest

Request parameters for generating database OAuth credentials

## Properties[​](#properties "Direct link to Properties")

### claims?[​](#claims "Direct link to claims?")

```ts
optional claims: RequestedClaims[];

```

Optional claims for fine-grained UC table permissions. When specified, the token will only grant access to the specified tables.

#### Example[​](#example "Direct link to Example")

```typescript
{
  claims: [{
    permission_set: RequestedClaimsPermissionSet.READ_ONLY,
    resources: [{ table_name: "catalog.schema.users" }]
  }]
}

```

***

### endpoint[​](#endpoint "Direct link to endpoint")

```ts
endpoint: string;

```

Endpoint resource path. Retrieve using the Databricks CLI:

```text
databricks postgres list-endpoints projects/{project-id}/branches/{branch-id}

```

Use the `name` field from the output.

#### Example[​](#example-1 "Direct link to Example")

```ts
"projects/{project-id}/branches/{branch-id}/endpoints/{endpoint-identifier}"

```
