GET
/
v2
/
team
/
datasets
curl --request GET \
  --url https://ai.data.cloud/api/v2/team/datasets \
  --header 'x-pd-api-key: <api-key>'
{
  "code": 0,
  "data": {
    "page_number": 1,
    "page_size": 10,
    "total_items": 1,
    "records": [
      {
        "id": "dataset-dasfadsgadsgas",
        "name": "mysql",
        "description": "mysql databases"
      }
    ]
  }
}

Example request:

curl --request GET \
  --url https://ai.data.cloud/api/v2/team/datasets?user_id=tmm-dafasdfasdfasdf \
  --header 'x-pd-api-key: <api-key>'

Example response:

200
{
  "code": 0,
  "data": {
    "page_number": 1,
    "page_size": 10,
    "total_items": 1,
    "records": [
      {
        "id": "dataset-dasfadsgadsgas",
        "name": "mysql",
        "description": "mysql databases"
      }
    ]
  }
}

Authorizations

x-pd-api-key
string
header
required

Headers

x-pd-external-trace-id
string

The trace ID you set in your system to trace this request. It can be up to 128 characters in length. If the request fails, you can provide it to the Powerdrill team to help with troubleshooting.

Query Parameters

page_number
integer

The page number to start listing. If not specified, the default value 1 will be used.

page_size
integer

The number of items on a single page. If not specified, the default value 10 will be used.

The search keyword, which can be up to 128 characters in length. Datasets with names or descriptions containing this keyword will be listed.

If omitted, all datasets in the project will be listed.

user_id
string
required

Your user ID, which uniquely identifies you within your team. To obtain your ID:

Response

200 - application/json
code
integer
required

Status code. 0 indicates that the operation is successful. Otherwise, the operation fails. For error troubleshooting, refer to Error Codes.

data
object
required

The returned data object.