Querying server for workspaceId programmatically

Summary

The user is looking for a way to programmatically retrieve the workspaceId from the server without relying on manual processes.


Question

Is there any way to query the server for the workspaceId programmatically?

Most API calls require the workspaceId, but the only way I understand to get it is from the URL of the server.
I am using docker compose to stand up a server, and I do not know the workspaceId until it is set up, and I log in on port 8000. Is there no way to set or get the workspaceId outside of this manual process?



This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want
to access the original thread.

Join the conversation on Slack

["querying-server", "workspaceid", "api", "docker-compose"]

https://reference.airbyte.com/reference/listworkspaces

For Airbyte OSS use /api/public/v1/workspaces endpoint.

The other option is to connect to Airbyte’s database and read id from workspace table