Skip to content

APIS

Databraid provides a powerful and flexible API that allows you to programmatically interact with the platform, automate workflows, and integrate Databraid with your existing systems. The API enables you to trigger braids, retrieve results, and manage various aspects of your Databraid environment.

Webhook Triggering

One of the key features of the Databraid API is the ability to trigger braids using webhooks. A webhook is an HTTP endpoint that you can configure in Databraid to listen for incoming requests. When a webhook is invoked, it automatically triggers the execution of a specific braid associated with that webhook.

Webhooks provide a seamless way to integrate Databraid with external systems or services. By sending an HTTP request to the webhook URL, you can initiate the execution of a braid and pass any necessary data or parameters as part of the request payload.

Braid Execution and Results

When a webhook is triggered, it initiates the execution of the associated braid. The braid processes the input data (if provided) and performs the defined operations using the configured nodes and beads. The execution of the braid follows the specified workflow, transforming and manipulating the data as it flows through the nodes.

Once the braid execution is complete, the API returns the results of the execution. The results can include the processed data, generated insights, or any other outputs produced by the braid. The API response format can be customized based on your requirements, such as JSON, XML, or any other supported format.

Access Control and Authentication

To ensure secure access to the Databraid API and protect your data and workflows, the API utilizes token-based authentication. Each API request must include a valid token in the request headers to authenticate and authorize the request.

Tokens are unique identifiers that are generated and managed within the Databraid platform. They are associated with specific permissions and access rights, determining the actions that can be performed through the API. Tokens can be created and assigned to individual users, applications, or systems, allowing you to control and monitor API access.

When a request is made to the Databraid API, the provided token is validated to ensure that it is authentic and has the necessary permissions to perform the requested action. If the token is valid, the API proceeds with executing the requested operation. If the token is invalid or lacks the required permissions, the API returns an appropriate error response.

API Documentation and Usage

Databraid provides comprehensive documentation for its API, including detailed information on available endpoints, request and response formats, authentication mechanisms, and usage examples. The documentation serves as a valuable resource for developers and users who want to integrate Databraid into their own applications or automate workflows.

The API documentation covers various aspects of interacting with Databraid programmatically, such as:

  • Triggering braids through webhooks
  • Retrieving braid execution results
  • Managing braids, nodes, and beads
  • Authenticating and authorizing API requests
  • Handling errors and exceptions
  • Best practices and guidelines for API usage

To get started with the Databraid API, refer to the API documentation for detailed instructions, code samples, and tutorials. The documentation provides step-by-step guidance on how to authenticate, make API requests, and interpret the responses.

API Rate Limiting and Usage Tracking

future integration

To ensure fair usage and protect the performance and stability of the Databraid platform, the API implements rate limiting. Rate limiting restricts the number of API requests that can be made within a specific time window. If the rate limit is exceeded, the API returns an appropriate error response, indicating that the limit has been reached.

Databraid also tracks API usage for each token, allowing you to monitor and analyze the usage patterns and consumption of API resources. Usage tracking helps in identifying any abnormal or suspicious activities, optimizing API performance, and ensuring compliance with usage policies.

With the Databraid API, you can programmatically control and automate your data processing workflows, integrate Databraid with other systems, and build custom applications on top of the platform. The API empowers you to extend the capabilities of Databraid and seamlessly incorporate it into your existing ecosystem.

Refer to the Databraid API documentation for detailed information on available endpoints, authentication mechanisms, request and response formats, and code examples to get started with integrating Databraid into your applications and workflows.