You can use the internal connections
endpoint to send a POST
request to create an internal connection between your application and database hosted on Kinsta. This request can be done from your terminal or using an automated script or CI/CD pipeline (e.g. CircleCI, Jenkins, etc.).
You can obtain the id
from the applications
endpoint.
Internal connection created successfully
No or invalid API key provided to the request
Error occurred while creating the connection
{- "target_type": "dbResource",
- "target_id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1"
}
{- "result": "success"
}