Temitope Sam
07/28/2025, 12:22 PMkapa.ai
07/28/2025, 12:22 PM/sources endpoint that includes the required configuration fields for the Instagram connector, along with the secretId. Based on the connector specification, the required fields for Instagram are: - access_token (string) - client_id (string) - client_secret (string) - num_workers (integer, optional) - start_date (string, optional) However, when using OAuth and a secretId, the actual sensitive values (access token, client ID, client secret) are stored in the secret referenced by the secretId. You still need to provide the other required configuration fields (such as start_date if needed), and you may need to include placeholder values or the correct structure for the credentials fields, depending on the connector's schema. A typical request body would look like this: json { "name": "My Instagram Source", "workspaceId": "your-workspace-id", "sourceType": "instagram", "secretId": "your-secret-id-from-oauth", "configuration": { "num_workers": 1, "start_date": "2023-01-01T00:00:00Z" // You may omit access_token, client_id, client_secret if using secretId, // but if the schema requires them, provide empty strings or placeholders. } } Important notes: - If the connector schema requires the credentials fields to be present even when using secretId, include them as empty strings or placeholders. - If you encounter schema validation errors, check the connector specification for required fields and their expected structure. - The secretId field is used to reference the stored OAuth credentials, so you do not need to provide the actual sensitive values in the request body. For more details on the required configuration fields for Instagram, see the [Instagram source connector reference](https://docs.airbyte.com/integrations/sources/instagram#reference). For the API endpoint and usage, refer to the [Airbyte Public API documentation](https://raw.githubusercontent.com/airbytehq/airbyte-platform/f284238f0099c4c0a3542d4c42a88773c45c363d/airbyte-api/src/main/openapi/api.yaml). If you encounter errors related to missing required fields, review the connector's schema and ensure all required fields are present in your request body, even if some are handled by the secretId mechanism. This is a common source of confusion, as discussed in [this GitHub discussion](https://github.com/airbytehq/airbyte/discussions/48607).kapa.ai
07/28/2025, 12:22 PMjson { "name": "My Instagram Source", "workspaceId": "YOUR_WORKSPACE_ID", "definitionId": "YOUR_SOURCE_DEFINITION_ID", // or use "configuration": { "sourceType": "instagram", ... } "configuration": { "credentials": { "auth_type": "Client" }, "start_date": "2023-01-01T00:00:00Z" // optional }, "secretId": "YOUR_SECRET_ID_FROM_OAUTH" } Key points: - The secretId field should be set to the value you received from the OAuth flow. - The credentials object must be present and should include at least the auth_type field (e.g., "auth_type": "Client"), as required by the connector's schema—even if the actual credentials are stored in the secret. - You may need to include other required fields depending on the connector's specification. This approach is confirmed by both the Airbyte API schema and community discussions, which highlight that the credentials object is still required in the request body, even when using a secretId for OAuth-managed credentials. If you omit it, you may encounter schema validation errors such as "required property 'credentials' not found" or "required property 'auth_type' not found" [secretId documentation unclear](https://github.com/airbytehq/airbyte/discussions/48607). For the full list of configuration fields for Instagram, refer to the [Instagram source reference](https://docs.airbyte.com/integrations/sources/instagram#reference). If you encounter errors, double-check the connector's specification and ensure all required fields are present in your request body.