## List checkpoint permissions

`PermissionRetrieveResponse fineTuning().checkpoints().permissions().retrieve(PermissionRetrieveParamsparams = PermissionRetrieveParams.none(), RequestOptionsrequestOptions = RequestOptions.none())`

**get** `/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions`

**NOTE:** This endpoint requires an [admin API key](/api/reference/resources/admin/subresources/organization/subresources/admin_api_keys).

Organization owners can use this endpoint to view all permissions for a fine-tuned model checkpoint.

### Parameters

- `PermissionRetrieveParams params`

  - `Optional<String> fineTunedModelCheckpoint`

  - `Optional<String> after`

    Identifier for the last permission ID from the previous pagination request.

  - `Optional<Long> limit`

    Number of permissions to retrieve.

  - `Optional<Order> order`

    The order in which to retrieve permissions.

    - `ASCENDING("ascending")`

    - `DESCENDING("descending")`

  - `Optional<String> projectId`

    The ID of the project to get permissions for.

### Returns

- `class PermissionRetrieveResponse:`

  - `List<Data> data`

    - `String id`

      The permission identifier, which can be referenced in the API endpoints.

    - `long createdAt`

      The Unix timestamp (in seconds) for when the permission was created.

    - `JsonValue; object_ "checkpoint.permission"constant`

      The object type, which is always "checkpoint.permission".

      - `CHECKPOINT_PERMISSION("checkpoint.permission")`

    - `String projectId`

      The project identifier that the permission is for.

  - `boolean hasMore`

  - `JsonValue; object_ "list"constant`

    - `LIST("list")`

  - `Optional<String> firstId`

  - `Optional<String> lastId`

### Example

```java
package com.openai.example;

import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.finetuning.checkpoints.permissions.PermissionRetrieveParams;
import com.openai.models.finetuning.checkpoints.permissions.PermissionRetrieveResponse;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        OpenAIClient client = OpenAIOkHttpClient.fromEnv();

        PermissionRetrieveResponse permission = client.fineTuning().checkpoints().permissions().retrieve("ft-AF1WoRqd3aJAHsqc9NY7iL8F");
    }
}
```

#### Response

```json
{
  "data": [
    {
      "id": "id",
      "created_at": 0,
      "object": "checkpoint.permission",
      "project_id": "project_id"
    }
  ],
  "has_more": true,
  "object": "list",
  "first_id": "first_id",
  "last_id": "last_id"
}
```
