GET
/
workspaces
/
{workspaceSlug}
/
databases
/
{databaseName}
/
credentials
curl --request GET \
  --url https://global.thenile.dev/workspaces/{workspaceSlug}/databases/{databaseName}/credentials \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "database": {
      "id": "<string>",
      "name": "<string>",
      "workspace": {
        "id": "<string>",
        "name": "<string>",
        "slug": "<string>",
        "stripe_customer_id": "<string>",
        "created": "2023-11-07T05:31:56Z"
      },
      "status": "PENDING",
      "region": "AWS_US_WEST_2",
      "created": "2023-11-07T05:31:56Z"
    }
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceSlug
string
required
databaseName
string
required

Response

200
application/json
A list of Credential objects
id
string
required
database
object
required

Was this page helpful?