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

# dataProvidersByIds

> Gets several data providers by global id. Fails when any id doesn't exist.



**query** `dataProvidersByIds(id: [ID!]!): [DataProvider!]!`

## Arguments

**`id`**: `[ID!]!` (required)

Global ids of the data providers (`DataProvider.id`).

## Returns

`[DataProvider!]!`

**`accessToken`**: `AccessToken`

Access token the data provider uses to write entries to its sources. Null when one can't be issued.

---

**`createdAt`**: `DateTime!`

When the data provider was created.

---

**`createdByUser`**: `UUID!`

Raw id (UUID) of the user who created the data provider. All zeros if not recorded.

---

**`dataSources`**: `DataSourcesConnection`

Sources the data provider may write entries to.

**Arguments:**

- `after`: `String` — Returns the elements in the list that come after the specified cursor.
- `before`: `String` — Returns the elements in the list that come before the specified cursor.
- `first`: `Int` — Returns the first _n_ elements from the list.
- `last`: `Int` — Returns the last _n_ elements from the list.

---

**`id`**: `ID!`

Global id of the data provider. `dataProviderById` and the data provider mutations take it. `DataProviderWithSecretDto.id` holds the raw UUID.

---

**`isDeleted`**: `Boolean!`

True if the data provider is deleted.

---

**`lastModified`**: `DateTime!`

When the data provider last changed.

---

**`lastModifiedByUser`**: `UUID!`

Raw id (UUID) of the user who last changed the data provider. All zeros if not recorded.

---

**`name`**: `String!`

Name of the data provider, unique within the tenant.

---

**`tags`**: `[String!]!`

Labels for grouping and filtering data providers.

---

**`tenantId`**: `UUID!`

Id of the tenant that owns the data provider.

## Examples

```graphql Query
query DataProvidersByIds($id: [ID!]!) {
  dataProvidersByIds(id: $id) {
    accessToken {
      expiresIn
      token
    }
    createdAt
    createdByUser
    dataSources {
      edges {
        cursor
        node {
          __typename
        }
      }
      nodes {
        cardDefinitions {
          __typename
        }
        createdAt
        dataProviders {
          __typename
        }
        deletedAt
        description
        entries {
          __typename
        }
      }
      pageInfo {
        endCursor
        hasNextPage
        hasPreviousPage
        startCursor
      }
      totalCount
    }
    id
    isDeleted
  }
}
```

```json Variables
{
  "id": [
    "id"
  ]
}
```

```json Response
{
  "data": {
    "dataProvidersByIds": [
      {
        "accessToken": {
          "expiresIn": 1,
          "token": "string"
        },
        "createdAt": "value",
        "createdByUser": "value",
        "dataSources": {
          "edges": [
            {
              "cursor": "string",
              "node": {
                "__typename": "DataSource"
              }
            }
          ],
          "nodes": [
            {
              "cardDefinitions": {
                "__typename": "CardDefinitionsConnection"
              },
              "createdAt": "value",
              "dataProviders": {
                "__typename": "DataProvidersConnection"
              },
              "deletedAt": "value",
              "description": "string",
              "entries": {
                "__typename": "SourceEntriesConnection"
              }
            }
          ],
          "pageInfo": {
            "endCursor": "string",
            "hasNextPage": true,
            "hasPreviousPage": true,
            "startCursor": "string"
          },
          "totalCount": 1
        },
        "id": "id",
        "isDeleted": true
      }
    ]
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.