---
title: "Get custom forward-backward operation"
method: GET
path: "/rl/training-sessions/{session_id}/operations/custom-forward-backward/{operation_id}"
tags: ["RL"]
---

# Get custom forward-backward operation

`GET /rl/training-sessions/{session_id}/operations/custom-forward-backward/{operation_id}`

Retrieves the current status and result of a custom forward-backward operation.

## Path parameters

- `session_id` string, required — Training session ID
- `operation_id` string, required — Operation ID

## Response `200`

Custom forward-backward operation details

- RLCustomForwardBackwardOperation — Async custom forward-backward pass operation
  - `id` string, required — Operation ID
  - `status` 'TRAINING_OPERATION_STATUS_UNSPECIFIED' | 'TRAINING_OPERATION_STATUS_PENDING' | 'TRAINING_OPERATION_STATUS_RUNNING' | 'TRAINING_OPERATION_STATUS_COMPLETED' | 'TRAINING_OPERATION_STATUS_FAILED', required
  - `output` RLCustomForwardBackwardResult — Result of a custom forward-backward pass operation
  - `error` RLTrainingOperationError — Error details for a failed training operation
    - `code` 'TRAINING_OPERATION_ERROR_CODE_UNSPECIFIED' | 'TRAINING_OPERATION_ERROR_CODE_RESOURCE_EXHAUSTED' | 'TRAINING_OPERATION_ERROR_CODE_TIMEOUT' | 'TRAINING_OPERATION_ERROR_CODE_INTERNAL_ERROR' | 'TRAINING_OPERATION_ERROR_CODE_SESSION_NOT_ACTIVE' | 'TRAINING_OPERATION_ERROR_CODE_INVALID_INPUT' | 'TRAINING_OPERATION_ERROR_CODE_NON_FINITE_LOSS' — Application error code for a failed training operation
    - `message` string — Human-readable error message

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/together/apis/together-apis.md) · [All operations](https://skmtc.net/together/apis/together-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/together/together-apis/versions/f26a23fab8e0/schema)
