Temitope Sam
09/27/2025, 7:33 PMkapa.ai
09/27/2025, 7:33 PMclient_id, client_secret, and refresh_token in the configuration. Here’s what the payload structure generally looks like for each: --- ### LinkedIn Ads Source (OAuth2.0) For Airbyte Open Source, the payload should include: json { "name": "My LinkedIn Ads Source", "sourceDefinitionId": "<source-definition-id-for-linkedin-ads>", "workspaceId": "<your-workspace-id>", "connectionConfiguration": { "credentials": { "auth_method": "oauth2.0", "client_id": "<your-client-id>", "client_secret": "<your-client-secret>", "refresh_token": "<your-refresh-token>" }, "start_date": "2023-01-01", "account_ids": "123456789" } } - The refresh_token is required for OAuth2.0 and is valid for 12 months. - The access_token can be used as an alternative, but it expires after 60 days. - The account_ids field is optional and can be omitted to sync all accessible accounts. [See official documentation for details](https://docs.airbyte.com/integrations/sources/linkedin-ads#step-2-set-up-the-linkedin-ads-connector-in-airbyte). --- ### LinkedIn Pages Source (OAuth2.0) The payload is similar, requiring the OAuth credentials: json { "name": "My LinkedIn Pages Source", "sourceDefinitionId": "<source-definition-id-for-linkedin-pages>", "workspaceId": "<your-workspace-id>", "connectionConfiguration": { "client_id": "<your-client-id>", "client_secret": "<your-client-secret>", "refresh_token": "<your-refresh-token>" } } - The refresh_token is recommended for longer access (12 months). - Alternatively, you can use an access_token for 60 days of access. [See LinkedIn Pages documentation for more details](https://docs.airbyte.com/integrations/sources/linkedin-pages#getting-started). --- Note: - The exact field names (credentials, auth_method, etc.) may vary depending on the connector version and Airbyte’s API schema. Always refer to the connector’s OpenAPI spec or use the Airbyte UI to inspect the expected payload. - For Airbyte Cloud, the OAuth flow is handled interactively in the UI, so you typically do not need to provide these fields manually. If you need to use the API to create the source, ensure your payload matches the connector’s specification, including the required authentication fields for OAuth2.0. [LinkedIn Ads setup guide](https://docs.airbyte.com/integrations/sources/linkedin-ads#step-2-set-up-the-linkedin-ads-connector-in-airbyte) [LinkedIn Pages setup guide](https://docs.airbyte.com/integrations/sources/linkedin-pages#getting-started)Temitope Sam
09/27/2025, 7:35 PMkapa.ai
09/27/2025, 7:35 PMkapa.ai
09/27/2025, 7:35 PMsecretId (obtained from Airbyte's OAuth redirect flow), you should include it in your payload as the secretId field at the top level of your source creation request. However, based on the available knowledge sources, there is some ambiguity and lack of clear documentation on exactly how the rest of the configuration should look when using secretId. From the Airbyte Public API documentation, the createSource endpoint accepts a secretId field in addition to the usual configuration fields. The relevant part of the schema is: json { "name": "My Source", "workspaceId": "<workspace-uuid>", "definitionId": "<connector-definition-uuid>", "configuration": { // The values required to configure the source. }, "secretId": "<your-secret-id>" } However, there is confusion in the community about what should be included in the configuration object when using secretId. One user reported that even when providing the secretId, the API still expects the usual credentials object (such as credentials or auth_type) in the configuration, and omitting it leads to schema validation errors. The official response suggests that you may still need to include a minimal credentials object, such as: json "credentials": { "auth_type": "Client" } This is because the auth_type is not stored in the secret and must be provided in the payload. The exact requirements may vary by connector, so you should check the connector specification for the required fields even when using secretId [secretId documentation unclear](https://github.com/airbytehq/airbyte/discussions/48607). In summary: - Include the secretId at the top level of your payload. - You may still need to provide a minimal credentials object (e.g., with auth_type) in the configuration, depending on the connector. - The knowledge sources indicate this area is confusing and not fully documented, so you may need to experiment or consult the connector spec for the exact requirements. If you encounter errors, try including both the secretId and a minimal credentials/configuration object as described above.