# Data as API

{% hint style="success" %}
*Check out the given walk-through on how to publish Data as an API using the Data Center module.*
{% endhint %}

<figure><img src="/files/mcSgrEKiubdQ3LFmaEaj" alt=""><figcaption></figcaption></figure>

* Navigate to the ***Data Center*** homepage.
* Click the ***New*** option.
* Select the ***Data As API*** option from the ***New*** menu.

![Data As API option under the New menu](/files/AuNlEMcuAG76ztrpZLcE)

* Select a  ***Data Source*** from the displayed list.
* Click on the ***Publish As Data Service*** icon.     &#x20;

![Publish as Data Service option](/files/VzBeAfRDLrndCK8TCJ45)

* The ***Publish As Data Service*** form opens.
* Provide the following information:
  * Service Name
  * Select a category or create a new Category.
  * Description
  * Parameters
  * Limit (You can specify the no. of records you want in the Limit field).       &#x20;
* Click the ***Save*** option.

![The Publish As Data Service form](/files/BQgtImBH7T0EWDpgKNU9)

* A confirmation message notifies the users that the selected data source has been published as a service.
* The published data gets listed under the Data as API list.

![The newly published data source as API gets listed under the Data As API list](/files/G3OPeDnRbFWpIb931vV7)

&#x20;   &#x20;

{% hint style="info" %} <mark style="color:green;">Please Note</mark>: &#x20;

* *The user can add filter(s) to the data set as a service.*
* *The Data Set published as a data service appears under the drop-down menu of the API Client Registration form (as displayed in the below-given image).*
  {% endhint %}

<figure><img src="/files/0l8sBFVZBpjTyWuX29sF" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="87">Icon</th><th width="157">Name</th><th>Action</th></tr></thead><tbody><tr><td><img src="/files/jixEwA4xKPYsKkClqSBX" alt="" data-size="line"></td><td>Push to VCS</td><td>Pushes a version of the Data as API to VCS </td></tr><tr><td><img src="/files/BErkJxEvOvWlRJFJHnV8" alt="" data-size="line"></td><td>Pull from VCS</td><td>Pulls a version from the VCS </td></tr><tr><td><img src="/files/EQMXaomIlzi5PFz2Ps1O" alt="" data-size="line"></td><td>Edit</td><td>Opens the Publish as Data Service form for the selected Data as API to modify the information.</td></tr><tr><td><img src="/files/4xUXfgLioiB601p7mKNt" alt="" data-size="line"></td><td>No data message configuration</td><td>A dialog box  appears to configure  the message that gets displayed when no data is shown under the Published API.</td></tr><tr><td><img src="/files/VikEu90P0l8GH04WAZam" alt="" data-size="line"></td><td>Delete</td><td>Deletes the selected Data as API service from the list.</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bdb.ai/bdb-documentation/data-center/data-as-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
