Quick Start
Start using Powerdrill Enterprise today and transform hours of data work into just minutes
Step 1. Get your API key
The Powerdrill Enterprise Open API is currently in . Join our waitlist by filling in the form. Once approved, you’ll receive a confirmation email promptly.
-
Sign in to Powerdrill with the email that you’ve used to join our waitlist.
-
On the displayed page, enter your organization name, review and accept our Terms of Service and Privacy Notice, then click Continue.
-
Connect to your credit card as prompted. You will then be directed to the Teamspace page.
Your credit card won’t be charged unless you purchase a subscription.
-
Navigate to the API tab, click + API access key to generate an API key, and make sure to save it securely, as it will only be displayed once on the Powerdrill platform.
Keep your API key SECRET. Never share it or include it in client-side code, such as browsers or apps. For production use, ensure all requests are routed through your backend server, where the API key can be securely accessed from an environment variable or a key management service.
Step 2. Create a dataset and a data source
This step is optional but highly recommended, as it allows you to receive insights tailored to your own data.
Data sources are the data you upload to Powerdrill for embedding, indexing, knowledge extraction, and vectorized storage and retrieval, while datasets are collections of data sources that help organize and categorize them.
You can create data sources and datasets in two ways:
-
Method 1: Create a dataset first, then add data sources to it.
-
Method 2: Upload data sources directly without specifying a dataset, and Powerdrill will automatically create a default dataset for them.
-
Make a request to
POST /v1/datasets
endpoint to create a dataset.Example request:
Replace
$PD_API_KEY
with the API key you’ve obtained in Step 1.Example response:
Obtain the
id
value (dataset ID) from the response and save it for later use. -
Make a request to the
POST /v1/datasets/{datasetId}/datasources
endpoint.Example request:
When making a request:
-
Replace the
datasetId
value with the ID of the dataset you’ve created in the previous sub-step. -
Specify either
url
orfileKey
, but not both. Useurl
to upload a file through a publicly accessible URL. For privately accessible files, usefileKey
(this feature will be supported soon).
Example response:
Repeat this sub-step to create multiple data sources in the same dataset.
-
When the data source created,
Step 3. Create a session
To create a session, make a request to the POST /v1/sessions endpoint. Sessions are essential for running jobs on Powerdrill, as each job must be linked to a session using its session ID.
Example request:
When making a request:
-
Replace
$PD_API_KEY
with the API key you’ve obtained in Step 1. -
Since this topic covers running a general job and no data agent is used, set the
x-pd-api-agent-id
header toGENERAL
(uppercase).
Example response:
Obtain the id
value (session ID) from the response and save it for use in the following step.
Step 4. Create a job
Now, after you’ve prepared a session and probably a dataset stuffed with data sources, you can create a job to start conversing with Powerdrill.
For the definition of job, see What Is Job?.
Make a request to the POST /v1/jobs endpoint.
Powerdrill provides the ability to stream responses, controlled by the stream
parameter. For more details about how to understand the streaming mode, see Streaming.
-
If
stream
is set to true, streaming is enabled. -
If
stream
is set to false, streaming is disabled.
Example request:
When making a request:
-
Replace
$PD_API_KEY
with the API key you’ve obtained in Step 1. -
Since this topic covers running a general job and no data agent is used, set the
x-pd-api-agent-id
header toGENERAL
(uppercase). -
Replace the
sessionId
value with the ID of the session you’ve created in Step 3. -
To enable Powerdrill to retrieve information from your own data and provide responses specific to it, set the
datasetId
to the ID of the dataset obtained in Step 2.
More to know
For each new organization, Powerdrill Enterprise offers 500 general jobs for free. After the free quota is consumed, to run more general jobs, you must subscribe to Powerdrill Enterprise via the POST /v1/subscriptions endpoint.
Sample request:
Example response:
When making a request:
-
Replace
$PD_API_KEY
with the API key you’ve obtained in Step 1. -
Set
targetID
to your team/project ID,targetType
toRPOJECT_GENERAL_MODE_PLAN
,tier
to your desired tier. For more information about the resources provided by each tier, see Pricing plans for general mode.
To check whether your subscription is active, make a request to the GET /v1/subscriptions/{subscriptionId}
endpoint.
Example request:
Example response:
Check the value of the status
field. Value active
indicates the subscription is currently active. Other possible values are:
-
incomplete_checkout
: The payment is pending. -
past_due
: The subscription is overdue but within the grace period. -
fail
: Subscription failed.