<@U04S8PLJWMT> Is there a way to retrieve the serv...
# ask-ai
p
@kapa.ai Is there a way to retrieve the service account that was used to set up a google sheets source?
k
I'm sorry, but the knowledge sources do not contain information about whether you can retrieve the service account that was used to set up a Google Sheets source after the setup is complete. The documentation explains how to configure a Google Sheets source using a service account, but it does not mention any method or UI feature for viewing or retrieving the service account details once the connector has been created [Google Sheets Source Setup Guide](https://docs.airbyte.com/integrations/sources/google-sheets#for-airbyte-open-source).
p
@kapa.ai What about retrieving all of the information of the source using the api, cli or something?
k
A message from kapa.ai
Yes, you can retrieve all of the information of a source using the Airbyte Public API. The API provides endpoints to list sources and get their full configuration details. For example, you can use the following endpoint to list all sources:
Copy code
GET /sources
This will return details for each source, including the configuration used to set it up. The configuration object will contain the fields that were provided during setup, such as the service account key (though secrets may be masked for security reasons) [Airbyte Public API - Sources](https://raw.githubusercontent.com/airbytehq/airbyte-platform/f284238f0099c4c0a3542d4c42a88773c45c363d/airbyte-api/src/main/openapi/api.yaml). If you want to retrieve a specific source's details, you can use:
Copy code
GET /sources/{sourceId}
Additionally, tools like the Octavia CLI allow you to export all source configurations from an Airbyte instance. When you run
octavia import all
, it will retrieve all sources, destinations, and connection configurations, storing them as YAML files. Note that secrets (like service account private keys) will be masked with asterisks (
**********
), so you may not get the actual secret values, but you will see the structure and non-sensitive configuration fields [Version control Airbyte configurations with Octavia CLI](https://airbyte.com/tutorials/version-control-airbyte-configurations). In summary, you can retrieve the configuration of a source—including the service account email and other non-secret fields—using the API or Octavia CLI, but sensitive values will be masked for security.