---
title: "getOrgConnectionRequest"
---

> Documentation Index
> Fetch the complete documentation index at: https://buildrforge.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# getOrgConnectionRequest

Path: Forge API › connections

`GET /orgs/{org_id}/connection-requests/{request_id}`

Read a request you created: its status and the provider's sign-in methods.

## Path parameters

- `org_id` (`getOrgConnectionRequest.path.org_id`; string, required)
  - pattern: `^org_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `request_id` (`getOrgConnectionRequest.path.request_id`; string, required)
  - pattern: `^connection_request_[0-7][0-9a-hjkmnp-tv-z]{25}$`

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/orgs/<org_id>/connection-requests/<request_id>'
```

### TypeScript

```typescript
const url = '<base-url>/orgs/<org_id>/connection-requests/<request_id>';
const options = {method: 'GET'};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/orgs/<org_id>/connection-requests/<request_id>"

response = requests.get(url)

print(response.text)
```

## Responses

### 200

ConnectionRequest

#### Example

```json
{
  "id": "string",
  "provider": {
    "id": "string",
    "definition": {
      "name": "string",
      "auth": {
        "property1": {
          "type": "secrets",
          "label": "string",
          "fields": {},
          "plain": [
            "string"
          ],
          "raw": [
            "string"
          ],
          "request": [
            {
              "in": "header",
              "name": "string",
              "value": [
                null
              ]
            }
          ],
          "sign_in": {
            "url": "string",
            "check": "string",
            "username": "string",
            "password": "string"
          }
        },
        "property2": {
          "type": "secrets",
          "label": "string",
          "fields": {},
          "plain": [
            "string"
          ],
          "raw": [
            "string"
          ],
          "request": [
            {
              "in": "header",
              "name": "string",
              "value": [
                null
              ]
            }
          ],
          "sign_in": {
            "url": "string",
            "check": "string",
            "username": "string",
            "password": "string"
          }
        }
      },
      "hosts": [
        "string"
      ]
    }
  },
  "audience": "org",
  "status": "pending",
  "extension_name": "string",
  "connection_id": "string",
  "oauth": [
    {
      "method": "string",
      "issuer": "string",
      "client": {
        "client_id": "string",
        "managed": true
      }
    }
  ],
  "created_by_id": "string",
  "created_at": "string",
  "expires_at": "string"
}
```

- `id` (`getOrgConnectionRequest.response.200.id`; string, required)
  - pattern: `^connection_request_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `provider` (`getOrgConnectionRequest.response.200.provider`; object, required)
  - `id` (`getOrgConnectionRequest.response.200.provider.id`; string, required)
    - pattern: `^prv_[0-9a-f]{64}$`
  - `definition` (`getOrgConnectionRequest.response.200.provider.definition`; object, required)
    - `name` (`getOrgConnectionRequest.response.200.provider.definition.name`; string, required)
      - minLength: `1`
    - `auth` (`getOrgConnectionRequest.response.200.provider.definition.auth`; map of AuthMethodDefinition, required)
    - `hosts` (`getOrgConnectionRequest.response.200.provider.definition.hosts`; array of string, required)
      - pattern: `^(\*\.(?=[^.:]+\.))?[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*(?::[1-9][0-9]{0,4})?$`
- `audience` (`getOrgConnectionRequest.response.200.audience`; string, required)
  - one of `"org"`, `"user"`
- `status` (`getOrgConnectionRequest.response.200.status`; string, required)
  - one of `"pending"`, `"completed"`, `"expired"`
- `extension_name` (`getOrgConnectionRequest.response.200.extension_name`; any of, required)
  - any of the following: `string`, `null`
- `connection_id` (`getOrgConnectionRequest.response.200.connection_id`; any of, required)
  - any of the following: `ConnectionId`, `null`
- `oauth` (`getOrgConnectionRequest.response.200.oauth`; array of object, required)
  - `method` (`getOrgConnectionRequest.response.200.oauth.method`; string, required)
    - minLength: `1`
  - `issuer` (`getOrgConnectionRequest.response.200.oauth.issuer`; string, required)
  - `client` (`getOrgConnectionRequest.response.200.oauth.client`; any of, required)
    - any of the following:
      - `object`
        - `client_id` (`getOrgConnectionRequest.response.200.oauth.client.1.client_id`; string, required)
        - `managed` (`getOrgConnectionRequest.response.200.oauth.client.1.managed`; boolean, required)
      - `null`
- `created_by_id` (`getOrgConnectionRequest.response.200.created_by_id`; string, required)
  - pattern: `^(?:user|extension)_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `created_at` (`getOrgConnectionRequest.response.200.created_at`; string, required)
- `expires_at` (`getOrgConnectionRequest.response.200.expires_at`; string, required)

### 400

InvalidRequest

#### Example

```json
{
  "_tag": "InvalidRequest",
  "part": "path",
  "issues": [
    {
      "path": [
        "string"
      ],
      "message": "string"
    }
  ]
}
```

- `_tag` (`getOrgConnectionRequest.response.400._tag`; string, required)
  - one of `"InvalidRequest"`
- `part` (`getOrgConnectionRequest.response.400.part`; string, required)
  - one of `"path"`, `"query"`, `"headers"`, `"body"`
- `issues` (`getOrgConnectionRequest.response.400.issues`; array of object, required)
  - `path` (`getOrgConnectionRequest.response.400.issues.path`; array\<any of\>, required)
    - any of the following: `string`, `integer`
  - `message` (`getOrgConnectionRequest.response.400.issues.message`; string, required)

### 401

InvalidCredentials

#### Example

```json
{
  "_tag": "InvalidCredentials"
}
```

- `_tag` (`getOrgConnectionRequest.response.401._tag`; string, required)
  - one of `"InvalidCredentials"`

### 403

Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired

#### Example

```json
{
  "_tag": "Forbidden",
  "message": "string"
}
```

Any of the following:

- `ForbiddenEncoded`
  - `_tag` (`ForbiddenEncoded._tag`; string, required)
    - one of `"Forbidden"`
  - `message` (`ForbiddenEncoded.message`; string, required)
- `ForbiddenOriginEncoded`
  - `_tag` (`ForbiddenOriginEncoded._tag`; string, required)
    - one of `"ForbiddenOrigin"`
- `RequiresPersonalSessionEncoded`
  - `_tag` (`RequiresPersonalSessionEncoded._tag`; string, required)
    - one of `"RequiresPersonalSession"`
- `RunBranchRequiredEncoded`
  - `_tag` (`RunBranchRequiredEncoded._tag`; string, required)
    - one of `"RunBranchRequired"`
  - `branch` (`RunBranchRequiredEncoded.branch`; string, required)
    - minLength: `1`
  - `message` (`RunBranchRequiredEncoded.message`; string, required)

### 404

ConnectionRequestNotFound | OrgNotFound

#### Example

```json
{
  "_tag": "ConnectionRequestNotFound",
  "request_id": "string"
}
```

Any of the following:

- `ConnectionRequestNotFoundEncoded`
  - `_tag` (`ConnectionRequestNotFoundEncoded._tag`; string, required)
    - one of `"ConnectionRequestNotFound"`
  - `request_id` (`ConnectionRequestNotFoundEncoded.request_id`; string, required)
    - pattern: `^connection_request_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `OrgNotFoundEncoded`
  - `_tag` (`OrgNotFoundEncoded._tag`; string, required)
    - one of `"OrgNotFound"`

### 429

RateLimited

#### Example

```json
{
  "_tag": "RateLimited"
}
```

- `_tag` (`getOrgConnectionRequest.response.429._tag`; string, required)
  - one of `"RateLimited"`

### 500

OrgFailure

#### Example

```json
{
  "_tag": "OrgFailure",
  "reason": "string"
}
```

- `_tag` (`getOrgConnectionRequest.response.500._tag`; string, required)
  - one of `"OrgFailure"`
- `reason` (`getOrgConnectionRequest.response.500.reason`; string, required)

### 503

SessionUnavailable | RateLimitUnavailable

#### Example

```json
{
  "_tag": "SessionUnavailable"
}
```

Any of the following:

- `SessionUnavailableEncoded`
  - `_tag` (`SessionUnavailableEncoded._tag`; string, required)
    - one of `"SessionUnavailable"`
- `RateLimitUnavailableEncoded`
  - `_tag` (`RateLimitUnavailableEncoded._tag`; string, required)
    - one of `"RateLimitUnavailable"`


Source: https://buildrforge.com/docs/api/get-org-connection-request/index.md
