---
title: "Get credential"
method: GET
path: "/organizations/{organization_id}/credential/{aws_account_id}"
tags: ["Credential"]
---

# Get credential

`GET /organizations/{organization_id}/credential/{aws_account_id}`

## Request

- Base URL: `https://api.cloudranger.com/202004`
- URL: `https://api.cloudranger.com/202004/organizations/{organization_id}/credential/{aws_account_id}`
- Auth: API key in header `Authorization` and API key in header `x-api-key`

Return credential by AWS Account ID

## Path parameters

- `organization_id` string, required
- `aws_account_id` string, required

## Response `200`

200 response

- GetOrganizationsAccountsCredentialResponse
  - `access_role_arn` string
  - `account_id` string
  - `cloudformation_s3_url` string
  - `created_at` string, date-time
  - `external_id` string
  - `has_agreed` boolean
  - `state` string
  - `state_reason` string
  - `updated_at` string, date-time

## Other responses

- `201`: 201 response
- `401`: 401 response
- `403`: 403 response
- `404`: 404 response

---

[API](https://skmtc.dev/druva/apis/cloudranger.md) - [All operations](https://skmtc.dev/druva/apis/cloudranger/llms.txt) - [OpenAPI document](https://skmtc.dev/druva/apis/cloudranger/revisions/0b87602807da?raw)
