All API tools
DevOps & Config
Docker Compose Builder API
POST
/v1/docker-compose-builder Free tier1 credit / callAuthentication
Send your API key as a bearer token. Create one free in the dashboard.
Authorization: Bearer $TOOLSXPO_KEYParameters
Passed as fields in the JSON body. Example values shown.
| Name | Example |
|---|---|
| services | web,db |
| nginxPort | 80:80 |
| pgDb | app |
| pgUser | admin |
| pgPass | secret_password |
| nodePort | 3000:3000 |
| redisPort | 6379:6379 |
Example request
curl -X POST "https://api.toolsxpo.com/v1/docker-compose-builder" \
-H "Authorization: Bearer $TOOLSXPO_KEY" \
-H "Content-Type: application/json" \
-d '{"services":"web,db","nginxPort":"80:80","pgDb":"app","pgUser":"admin","pgPass":"secret_password","nodePort":"3000:3000","redisPort":"6379:6379"}'Response
A standard JSON envelope: { ok, data, meta }. The result is in data (text); meta.credits reports what the call cost.