I'm trying to create an application for API access...
# ask-ai
s
I'm trying to create an application for API access to my localhost instance of airbyte self-managed. It does not give me a "create application" option. Do I need to do something to enable it?
k
New message text here
s
how do i check if airbyte-server is running?
@kapa.ai I'm on v 1.8.5 running on localhost. Should I have the api server running and should I be able to to create applications?
k
A message from kapa.ai
If you are running Airbyte Self-Managed Community (OSS) version 1.8.5 on localhost, you should have the server running to access the UI and any features. However, according to the documentation, the ability to create applications for API access (i.e., generating
client_id
and
client_secret
from the UI) is only available in the Self-Managed Enterprise edition, not in the OSS (Community) edition. The documentation for configuring API access and creating applications specifically refers to Self-Managed Enterprise and does not mention this feature being available in the OSS version [Configuring API Access](https://docs.airbyte.com/platform/enterprise-setup/api-access-config). So, on OSS v1.8.5, even with the server running, you will not see the "Create application" option in the UI. This is expected behavior for the Community edition. If you require this feature, you would need to use the Self-Managed Enterprise edition of Airbyte. If you are running Enterprise and still do not see the option, ensure you are navigating to the correct location in the UI and that your deployment is healthy [Configuring API Access (Next)](https://docs.airbyte.com/platform/next/enterprise-setup/api-access-config).
A message from kapa.ai
If you are running Airbyte v1.8.5 on localhost, you do need to have the Airbyte server running to access the UI and API features. However, based on the available knowledge sources, the ability to create applications (to generate
client_id
and
client_secret
for API access) is only documented for Self-Managed Enterprise deployments, not for the OSS (open-source) version. The documentation consistently states that application keys and the "Create application" UI are features of Self-Managed Enterprise, and there is no mention of this being available in the OSS version. If you are using the OSS version, you will not see the "Create application" option in the UI, even with the server running [Configuring API Access](https://docs.airbyte.com/platform/1.7/using-airbyte/configuring-api-access) [Configuring API Access (Enterprise)](https://docs.airbyte.com/platform/1.7/enterprise-setup/api-access-config). If you are running the Enterprise edition and still do not see the option, ensure your deployment is healthy and you are navigating to the correct location in the UI. Summary: - Yes, the API server should be running. - On OSS v1.8.5, you should not expect to see the "Create application" option in the UI. - This feature is only available in Self-Managed Enterprise, according to the documentation. If you need further clarification, please specify whether you are using the OSS or Enterprise edition.
s
ok then @kapa.ai can I use the api for OSS airbyte at all?
k
A message from kapa.ai
Yes, you can use the API with Airbyte OSS (open-source) edition. The Airbyte API is available for all Airbyte products, including OSS, Cloud, and Self-Managed Enterprise. However, there are some differences in how you access it: - For OSS users, you must use the
/api/public/v1
path prefix when making API requests (for example: `http://localhost:8000/api/public/v1/workspaces`). - The application key management (creating applications to generate
client_id
and
client_secret
from the UI) is not available in OSS. Instead, you use the credentials generated during setup, which you can retrieve with
abctl local credentials
or from your Kubernetes secrets if deployed that way. - You can authenticate using the email and password set up during installation, and you may also have access to a
client-id
and
client-secret
for certain API endpoints, as output by
abctl local credentials
 [API documentation](https://docs.airbyte.com/platform/api-documentation) [Authentication](https://docs.airbyte.com/platform/deploying-airbyte/integrations/authentication). For more details on how to use the API in OSS, see the [API documentation](https://docs.airbyte.com/platform/api-documentation). In summary: You can use the API in Airbyte OSS, but you do not have the "Create application" feature. Use the
/api/public/v1
endpoints and authenticate with the credentials provided during setup.
s
@kapa.ai so I'm hitting http://localhost:8000/api/public/v1/applications/token and getting this response
Copy code
{
  "message": "Bad Request",
  "_links": {
    "self": {
      "href": "/api/public/v1/applications/token",
      "templated": false
    }
  },
  "_embedded": {
    "errors": [
      {
        "message": "Failed to convert argument [applicationTokenRequestWithGrant] for value [null] due to: Cannot construct instance of `io.airbyte.publicApi.server.generated.models.ApplicationTokenRequestWithGrant`, problem: Parameter specified as non-null is null: method io.airbyte.publicApi.server.generated.models.ApplicationTokenRequestWithGrant.<init>, parameter clientId\n at [Source: UNKNOWN; byte offset: #UNKNOWN]",
        "path": "/applicationTokenRequestWithGrant",
        "_links": {},
        "_embedded": {}
      }
    ]
  }
}
k
A message from kapa.ai
The error message you are seeing indicates that the API endpoint
/api/public/v1/applications/token
expects a JSON body containing a
client_id
and
client_secret
, but it is receiving a null value for these parameters. Specifically, the error says: > Parameter specified as non-null is null: method io.airbyte.publicApi.server.generated.models.ApplicationTokenRequestWithGrant.<init>, parameter clientId This means your request is missing the required fields in the body. However, according to the knowledge sources, in Airbyte OSS (open-source) v1.8.5, the ability to create applications and obtain
client_id
and
client_secret
via the UI is not available.
This feature is only present in the Self-Managed Enterprise edition. Multiple users have reported that in OSS v1.8.x, the client ID and secret are not visible or available, and the
/applications/token
endpoint does not work as expected in OSS. This is a known limitation and has been discussed in several GitHub issues, with users confirming that the feature is not available in OSS and that the endpoint will not work without valid credentials, which cannot be generated in OSS [Token generation fails with "Invalid client id or token"](https://github.com/airbytehq/airbyte/issues/65595) [Airbyte platform not showing the client ID and client secret on the UI](https://github.com/airbytehq/airbyte/issues/66675). Summary: - The
/api/public/v1/applications/token
endpoint requires a
client_id
and
client_secret
in the request body. - In Airbyte OSS v1.8.5, you cannot generate these credentials because the "Create application" feature is not available. - As a result, this endpoint will not work in OSS, and the error you see is expected. If you need API access in OSS, you may need to use other authentication methods, such as logging in with your email and password (if available), but the application-based token flow is not supported in OSS according to the current documentation and user reports.
s
@kapa.ai but I can get these credentials from
abctl local credentials
and have used those in the body, as well as a grant type of
client_credentials
k
A message from kapa.ai
Based on the knowledge sources, when you run
abctl local credentials
, you receive a JSON output containing
email
,
password
,
client-id
, and
client-secret
. The documentation states: > The
client-id
and
client-secret
are necessary to create an [Access Token for interacting with the Airbyte API](https://reference.airbyte.com/reference/createaccesstoken) [Full abctl reference](https://docs.airbyte.com/platform/next/deploying-airbyte/abctl#reference). However, multiple user reports and issues indicate that, starting with Airbyte OSS v1.8.x, using the
client-id
and
client-secret
from
abctl local credentials
with the
/api/public/v1/applications/token
endpoint does not work as expected. Users consistently report receiving "Invalid client id or token" or similar errors, and the documentation does not provide a working example for OSS. This appears to be a known limitation or bug in recent OSS versions, and the endpoint is not reliably functional for OSS users, even with the credentials from
abctl local credentials
 [Token generation fails with "Invalid client id or token"](https://github.com/airbytehq/airbyte/issues/65595) [Airbyte platform not showing the client ID and client secret on the UI](https://github.com/airbytehq/airbyte/issues/66675). Summary: - You can retrieve
client-id
and
client-secret
from
abctl local credentials
. - According to documentation, these should be usable for API token generation. - In practice, for OSS v1.8.x, this does not work due to a known issue, and the
/api/public/v1/applications/token
endpoint does not accept these credentials. I'm sorry, but the knowledge sources and user reports indicate that, as of OSS v1.8.5, you cannot successfully use the credentials from
abctl local credentials
to obtain an API token via
/api/public/v1/applications/token
. This is a limitation or bug in the OSS version.
s
@kapa.ai do you have a link to the bug or known issue?
k
A message from kapa.ai
Yes, there are several reports and issues in the knowledge sources that document this problem: - Users on OSS v1.8.x report that the
/api/public/v1/applications/token
endpoint does not work with the
client-id
and
client-secret
provided by
abctl local credentials
, resulting in "Invalid client id or token" errors. This is discussed in detail in [this GitHub issue](https://github.com/airbytehq/airbyte/issues/65595), where multiple users confirm the problem persists in versions 1.8.2, 1.8.4, and 1.8.5. - Another related issue is [here](https://github.com/airbytehq/airbyte/issues/66675), where users report that the client ID and client secret are not visible in the UI and that the application ID changes on every refresh, further complicating API authentication. - There is also a follow-up issue confirming that the problem recurs in 1.8.5: [Issue 67581](https://github.com/airbytehq/airbyte/issues/67581). These sources confirm that this is a known and ongoing issue in recent OSS versions.