Portabase DashboardAPIDatabases
List databases
GET
apiKeyAuthheader
x-api-key<token>API key generated from the Portabase dashboard. Pass as the x-api-key header.
List of accessible databases
application/json- response
data*array<>Example Request
curl -X GET 'https://portabase.example.com/api/v1/databases'Example Response
{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "agentDatabaseId": "78f4c143-eccc-413e-8e8a-868364d45b73", "name": "string", "dbms": "postgresql", "description": "string", "backupPolicy": "string", "isWaitingForBackup": true, "backupToRestore": "string", "backupEngine": "archive", "methodConflict": "string", "fullBackupCron": "string", "healthErrorCount": -2147483648, "agentId": "bc309ecf-5f66-4057-93c5-6611cc9cb7b2", "lastContact": "2019-08-24T14:15:22Z", "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8", "updatedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "deletedAt": "2019-08-24T14:15:22Z" } ]}Get agent edge key GET
Previous Page
Declare a database on an agent POST
Same as Add database on the agent page: the dashboard stores the configuration (secrets encrypted) and sends it to the agent at its next ping. Requires system admin rights for a global agent, or canManageAgents in the agent's organization. projectId also attaches the database to that project (canManageSettings in its organization).