API Endpoints
Complete reference for all NugetHosting API endpoints.
⏱️ 10 min read
Base URLs
| Service | URL |
|---|---|
| REST API | https://api.nugethosting.com/v1 |
| NuGet Feed | https://nuget.nugethosting.com/v3/index.json |
| Container Registry | https://registry.nugethosting.com |
Packages
GET
/packagesList all packages in your account.
curl -H "Authorization: Bearer TOKEN" \
https://api.nugethosting.com/v1/packagesGET
/packages/:idGet details of a specific package.
curl -H "Authorization: Bearer TOKEN" \
https://api.nugethosting.com/v1/packages/MyPackageDELETE
/packages/:id/:versionDelete a specific package version.
curl -X DELETE -H "Authorization: Bearer TOKEN" \
https://api.nugethosting.com/v1/packages/MyPackage/1.0.0Containers
GET
/containersList all container images in your account.
curl -H "Authorization: Bearer TOKEN" \
https://api.nugethosting.com/v1/containersDELETE
/containers/:name/:tagDelete a container image tag.
curl -X DELETE -H "Authorization: Bearer TOKEN" \
https://api.nugethosting.com/v1/containers/my-app/v1.0.0Tokens
GET
/tokensList all API tokens (token values are not included).
DELETE
/tokens/:idRevoke (delete) an API token.
Account
GET
/accountGet current account information and usage statistics.
GET
/account/usageGet detailed usage metrics for the current billing period.