# Get a feasibility request (https://terac.com/docs/developers/reference/getFeasibilityRequest)

`GET https://terac.com/api/external/v2/feasibility/requests/{requestId}`

Retrieve one of your feasibility requests by id. Use this to poll for the CPI after submitting.

Status decides whether there is a price to read:
- RECEIVED: not priced yet, costPerParticipant is null.
- RESPONDED: priced. costPerParticipant is the confirmed all-in CPI per participant.
- WON: already used by a study that launched.
- LOST or NOT_PURSUED: closed without a usable price. Both are terminal, so stop polling. No reason is
  returned on this endpoint.

Once RESPONDED, create the opportunity with POST /opportunities passing feasibility_request_id to price
it from that confirmed CPI, then launch it.

## Authorization

Requires a Bearer token via the `Authorization` header.

```
Authorization: Bearer <token>
```

## Path Parameters

- `requestId` (string) **(required)**: ID of the feasibility request, as returned by `POST /feasibility/requests`.

## Responses

### 200: The request, with its CPI once it is priced.

- `id` (string) **(required)**
- `status` (string) **(required)**: one of: `RECEIVED`, `RESPONDED`, `WON`, `LOST`, `NOT_PURSUED`
- `source` (string) **(required)**
- `taskDescription` (string) **(required)**
- `panelDescription` (string) **(required)**
- `submissionCount` (integer, nullable) **(required)**
- `timelineHours` (integer, nullable) **(required)**
- `payRateFrequency` (string, nullable) **(required)**: one of: `ONE_TIME`, `HOURLY`, `PER_TASK`, `null`: What costPerParticipant is denominated in once priced: ONE_TIME (per complete), HOURLY, or PER_TASK. Null until the brief states it.
- `loiMinutes` (integer, nullable) **(required)**: Minutes one participant spends on the task. Distinct from timelineHours, which is Terac's turnaround.
- `costPerParticipant` (string, nullable) **(required)**
- `respondedAt` (string, nullable) **(required)**
- `createdAt` (string) **(required)**
- `dashboard_url` (string, nullable) **(required)**: The organization's feasibility requests and the incentives Terac quoted back. There is no page for a single request, so this list is the only feasibility link; give it after you request feasibility or when the customer asks where a quote went. Null if Terac cannot resolve the organization or project this link belongs to.
### 400: Invalid input data

- `message` (string) **(required)**: The error message
- `code` (string) **(required)**: The error code
- `issues` (array): An array of issues that were responsible for the error
  - `message` (string) **(required)**
### 401: The API key is missing, invalid, disabled, expired or revoked, its owner no longer exists, or it is not linked to an organization. The body is nested under `error`.

- `error` (object) **(required)**
  - `code` (string) **(required)**: one of: `UNAUTHORIZED`: The error code.
  - `message` (string) **(required)**: What went wrong.
### 403: Either the account that owns the API key is banned or deleted (from the key check, nested under `error`), or the key's owner lacks the organization permission this operation needs (from the operation, with `code` and `message` at the top level).

- One of: API key error (403)
  - `error` (object) **(required)**
    - `code` (string) **(required)**: one of: `FORBIDDEN`: The error code.
    - `message` (string) **(required)**: What went wrong.
- One of: Insufficient access error (403)
  - `message` (string) **(required)**: The error message
  - `code` (string) **(required)**: The error code
  - `issues` (array): An array of issues that were responsible for the error
    - `message` (string) **(required)**
### 404: Not found

- `message` (string) **(required)**: The error message
- `code` (string) **(required)**: The error code
- `issues` (array): An array of issues that were responsible for the error
  - `message` (string) **(required)**
### 429: The API key is rate limited. A key accepts 100 requests, then refuses every request until more than 60 seconds pass with no accepted request; refused requests do not extend the wait. Wait the number of seconds in `Retry-After`, then retry. The body is nested under `error`.

- `error` (object) **(required)**
  - `code` (string) **(required)**: one of: `RATE_LIMITED`: The error code.
  - `message` (string) **(required)**: What went wrong.
### 500: Internal server error

- `message` (string) **(required)**: The error message
- `code` (string) **(required)**: The error code
- `issues` (array): An array of issues that were responsible for the error
  - `message` (string) **(required)**