ServicesConnectionsHTTP APIUnknown

Vend_credential

POST
/api/connections/{connection_id}/credentials

Obtain a short-lived read credential for a URI within the Connection.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Path Parameters

connection_id*string
Formatuuid

Request Body

application/json
  1. body
uri*string

Response Body

Success

application/json
  1. response
credential*||

A short-lived provider credential. Renew it before it expires.

curl -X POST 'https://api.spiraldb.dev/api/connections/497f6eca-6276-4993-bfeb-53cbbbba6f08/credentials' \  -H 'Content-Type: application/json' \  -d '{  "uri": "string"}'
{  "credential": {    "awsSession": {      "accessKeyId": "string",      "endpoint": "string",      "expiresAtMicros": "string",      "region": "string",      "secretAccessKey": "string",      "sessionToken": "string"    },    "type": "awsSession"  }}