---
title: "Get All Credentials"
method: GET
path: "/data_credentials"
tags: ["Credentials"]
---

# Get All Credentials

`GET /data_credentials`

## Request

- Base URL: `https://dataops.nexla.io/nexla-api`
- URL: `https://dataops.nexla.io/nexla-api/data_credentials`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nexla/apis/nexla-rest-api/docs/data_credentials/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns all data credentials accessible to the authenticated user.

## Query parameters

- `access_role` 'collaborator' | 'operator' | 'admin' | 'owner': Add this query parameter to a request to view resources for which the authenticated user has permission. 1. `collaborator`: Resources to which the user has access via the collaborator or higher permissions. 2. `operator`: Resources to which the user has access via the operator or higher permissions. 3. `admin`: Resources to which the user has access via the administrator or owner permissions. 4. `owner`: Resources created by the user. Note that the absence of this property in the request is treated as `owner`, so you do not need to set `access_role=owner` in the query.
- `credentials_type` string

## Headers

- `Accept` 'application/vnd.nexla.api.v1+json' | 'application/json': Setting to `application/vnd.nexla.api.v1+json` is recommended.

## Response `200`

Success

- object[]
  - `id` integer
  - `name` string
  - `description` string, nullable
  - `owner` Owner
    - `id` integer
    - `full_name` string
    - `email` string, email
  - `org` Org
    - `id` integer
    - `name` string
    - `email_domain` string
    - `email` unknown
    - `client_identifier` unknown
  - `access_roles` string[]: This property reflects all the permissions the user/team/organization has to this resource. 1. `collaborator`: The user/team/organization can view the resource but not make any modifications to it. 2. `operator`: The user/team/organization can view the resource and can activate/pause it, but not make any other modifications to it. 3. `administrator`: The user/team/organization has complete administrative rights to this resource. 4. `owner`: This user created the resource and so has complete administrative rights to it.
  - `credentials_version` string
  - `credentials_type` string
  - `connector` object
    - `id` integer
    - `type` string
    - `connection_type` string
    - `name` string
    - `description` string
    - `nexset_api_compatible` boolean
  - `verified_status` string
  - `verified_at` string, date-time
  - `copied_from_id` integer, nullable
  - `updated_at` string, date-time
  - `created_at` string, date-time
  - `vendor` object
    - `id` integer
    - `name` string
    - `display_name` string
    - `connection_type` string
  - `template_config` object, nullable

## Other responses

- `403`: Forbidden
- `404`: Not found

---

[API](https://skmtc.dev/nexla/apis/nexla-rest-api.md) - [All operations](https://skmtc.dev/nexla/apis/nexla-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nexla/apis/nexla-rest-api/revisions/ef02be92fe7b?raw)
