POST
/
workspaces
/
{workspaceSlug}
/
databases
/
{databaseName}
/
credentials
curl --request POST \
  --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",
    "apiHost": "<string>",
    "dbHost": "<string>"
  },
  "password": "<string>"
}

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
Credential created
id
string
required
database
object
required
password
string
required