> ## 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.

# createDataProvider

> Creates a data provider and returns it with its client secret. Exchange the secret for an access token with `authenticateDataProvider`.



**mutation** `createDataProvider(input: CreateDataProviderInput!): CreateDataProviderPayload!`

## Arguments

**`input`**: `CreateDataProviderInput!` (required)

## Returns

`CreateDataProviderPayload!`

**`dataProviderWithSecretDto`**: `DataProviderWithSecretDto`

---

**`errors`**: `[CreateDataProviderError!]`

## Examples

```graphql Mutation
mutation CreateDataProvider($input: CreateDataProviderInput!) {
  createDataProvider(input: $input) {
    dataProviderWithSecretDto {
      createdAt
      createdByUser
      dataSources
      id
      lastModified
      lastModifiedByUser
    }
    errors {
      __typename
      ... on GraphQlError {
        code
        details {
          __typename
        }
        message
      }
    }
  }
}
```

```json Variables
{
  "input": {
    "dataSources": [
      "string"
    ],
    "name": "string",
    "tags": [
      "string"
    ]
  }
}
```

```json Response
{
  "data": {
    "createDataProvider": {
      "dataProviderWithSecretDto": {
        "createdAt": "value",
        "createdByUser": "value",
        "dataSources": [
          "string"
        ],
        "id": "string",
        "lastModified": "value",
        "lastModifiedByUser": "value"
      },
      "errors": [
        {
          "__typename": "GraphQlError",
          "code": "string",
          "details": [
            {
              "__typename": "KeyValuePairOfStringAndString"
            }
          ],
          "message": "string"
        }
      ]
    }
  }
}
```


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