API V1
  • Global information
  • Authentication
  • Data format
  • Rate Limit
  • Errors
  • Pagination
RESOURCES
  • Addon providers
  • Addons
  • Alerts
  • Applications
  • Audit Logs
  • Autoscalers
  • Billing
  • Collaborators
  • Container Sizes
  • Cron Tasks
  • Data Access Consents
  • Databases
  • Deployment
  • Domains
  • Environment variables
  • Event Categories
  • Event Types
  • Events
  • Invoices
  • SSH Keys
  • Log Drains
  • Application Logs
  • Metrics
  • Notification Platforms
  • Notifiers
  • One-off Containers
  • Operations
  • Projects
  • Referral
    • Display Your Referral Statistics
  • Regions
  • SCM Integrations
  • Integration Link
  • Sources
  • Stacks
  • Tokens
  • User Account
LINKS
  • Addon Provider API
  • Database API
  • One-click Deployment API
  • scalingo.json Schema
  • Main site
  • Dashboard

Referral Stats

Referral Stats Attributes

field type description
clicks integer Number of people who have clicked on the link
signups integer Number of people who have signed up from the link
amount_earned float How much credit has been added to the account
url string User’s referral link

Example object:

{
	"referral_stats": {
		"clicks": "165",
		"signups": 23,
		"amount_earned": 10.5,
		"url": "https://sclng.io/r/81e0166feda0efe0"
	}
}

Display Your Referral Statistics

GET https://$SCALINGO_API_URL/v1/account/referrals/stats

Display the statistics of your referral link.

Example

curl -H "Accept: application/json" -H "Content-Type: application/json" \
  -H "Authorization: Bearer $BEARER_TOKEN" \
  -X GET https://$SCALINGO_API_URL/v1/account/referrals/stats

Returns 200 OK

{
	"referral_stats": {
		"clicks": "165",
		"signups": 23,
		"amount_earned": 10.5,
		"url": "https://sclng.io/r/81e0166feda0efe0"
	}
}