Authentication in Hablla API

The Hablla API offers two authentication methods. Each is intended for different purposes, ranging from automated integrations to actions traceable to human users.

The Workspace Token is a token directly linked to a specific workspace. It is the most practical and robust form of authentication for integrations and automations.

Main Advantages:

  • Allows access to most API routes.

  • Does not expire.

  • Can be used securely in automated environments.

  • Offers traceability (actions are recorded in the history as executed via automation).

How to obtain

You can capture the workspace token when executing a flow in Hablla that uses an API component. In the request response, it will be available in the Authorization.

📌 Visual example:

circle-info

The field Authorization contains the token you should use. Important: always replace with token_here when sharing public examples to avoid leaks.

Identifying the Workspace ID

The workspace ID (example: 64e683e59a0a699241b5727c) is unique per client. You can find it directly in the browser URL when accessing your environment in Hablla Studio:

https://studio.hablla.com/workspaces/<WORKSPACE_ID>

Request example

2. Authentication via User Token (optional)

The User Token represents an authenticated human user. It is used when you want API actions to appear in the history as performed by a specific collaborator.

How it works

This token is generated after the user logs in.

⚠️ Attention: This token expires in approximately 1 hour. After that time, reauthentication is required.

Request example with User Token

Conclusion

Token Type

Ideal for

Traceable actions?

Expiration

Recommended?

Workspace Token

Integrations, automations, bots

✅ Yes (as a bot)

❌ No

✅ Yes

User Token

Actions assigned to specific users

✅ Yes (per user)

✅ Yes (~1h)

Optional

Last updated

Was this helpful?