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
    • List the Events of an App
    • List Current User Events
  • Invoices
  • SSH Keys
  • Log Drains
  • Application Logs
  • Metrics
  • Notification Platforms
  • Notifiers
  • One-off Containers
  • Operations
  • Projects
  • Referral
  • 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

Events

Events are generated automatically according to your actions, thanks to them, you can have an overview of the activity of your applications.

Event attributes

field type description
id string unique ID of event
created_at date date of creation
user object embedded user who generated the event
type string type of event (see below for the values)
app_id string unique ID of the app
app_name string app name the event belongs to

Note: app_name is not modified when an application is renamed, it’s frozen in the event.

According to the type field, extra data will be included in the structure in a type_data attribute:

Example object:

  • Base event
{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "typename"
}
  • New app event

When: When the application is created type=new_app

field type description
git_source string Optional - Reference to the GIT repository in the case of a one-click deploy

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "new_app",
  "type_data": {
    "git_source": "<GIT repository URL - Optional>"
  }
}
  • Rename app event

When: When the application is renamed to a new name type=rename_app

field type description
old_name string Old name of the application
new_name string New name of the application

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "rename_app",
  "type_data": {
    "old_name": "old-app-name",
    "new_name": "new-app-name"
  }
}
  • Transfer app event

When: When the application is transferred to a new owner type=transfer_app

field type description
old_owner.id string ID of the previous owner
old_owner.email string Email of the previous owner
old_owner.username string Username of the previous owner
new_owner.id string ID of the new owner
new_owner.email string Email of the new owner
new_owner.username string Username of the new owner

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "rename_app",
  "type_data": {
    "old_owner": {
      "username": "johndoe",
      "email": "john@doe.com",
      "id": "51e6bc626edfe40bbb000001"
    },
    "new_owner": {
      "username": "new-johndoe",
      "email": "new-john@doe.com",
      "id": "51e6bc626edfe40bbb000002"
    }
  }
}
  • Restart event

When: The application or some containers have been restarted type=restart

field type description
scope array The scope of the restart, null is all
addon_provider string The name of the addon which restarted the application

Note: If an addon restart the application, the user array won’t be present. And if an user restart the application, the addon_name will be blank.

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "restart",
  "type_data": {
    "scope": ["web", "worker"]
  }
}
  • Scale event

When: The application has been scaled out type=scale

field type description
previous_containers object The formation before the operation
containers object The formation after the request

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "scale",
  "type_data": {
    "previous_containers": {
      "web": 1,
      "worker": 0
    },
    "containers": {
      "web": 2,
      "worker": 1
    }
  }
}
  • Deployment event

When: A deployment has been done type=deployment

field type description
deployment_id string Unique ID of the Deployment associated to the event
deployment_type string Type of deployment (deployment or archive)
pusher string Username of the user having pushed the code
git_ref string GIT SHA of the deployed code
git_ref_url string SCM Integration URL of the git ref deployed
status string Status of the deployment (details)
stack string Stack used by the deployment
duration integer Duration of the deployment in seconds
finished_at datetime Date & Time when deployment was done
last_commits object Object containing last commits of the deployment

Last commits:

field type description
commits array List of commits
remaining int Number of commits

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "deployment",
  "type_data": {
    "deployment_id" : "5343eccd646aa3012a140230",
    "deployment_type": "deployment",
    "pusher": "johndoe",
    "git_ref": "0123456789abcdef",
    "git_ref_url": "https://github.com/johndoe/repo/commit/58c778ff1c6d275c49af18adca456acd98db4ad0",
    "status": "success",
    "duration": 40,
    "stack": "scalingo-18",
    "finished_at": "2019-12-24T01:00:00.000+00:00",
    "last_commits": {
      "commits": [],
      "remaining": 0
    }
  }
}
  • Run event

When: Someone runs scalingo run from the CLI type=run

field type description
command string The command run by the user
audit_log_id string ID of the audit log generated by the one-off
audit_log_size integer Size (in bytes) of the audit log
detached boolean The one-off is detached

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "run",
  "type_data": {
    "command": "bundle exec rake db:migrate",
    "audit_log_id": "abcdef-1234-aaaa-bbbb",
    "audit_log_size": 122445385
  }
}
  • New Domain event

When: Each time a custom domain name is added to the app type=new_domain

field type description
hostname string Hostname of the custom domain
ssl boolean Custom SSL certificate added

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "new_domain",
  "type_data": {
    "name" : "example.com",
    "ssl" : false
  }
}
  • Edit Domain event

When: When a domain is updated, (set or remove SSL) type=edit_domain

field type description
hostname string Hostname of the custom domain
ssl boolean Custom SSL certificate added
old_ssl boolean Previous state of the SSL cert

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "edit_domain",
  "type_data": {
    "hostname": "example.com",
    "old_ssl": false,
    "ssl": true
  }
}
  • Delete Domain event

When: Remove a custom domain from an app type=delete domain

field type description
hostname string Hostname of the custom domain

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "delete_domain",
  "type_data": {
    "hostname" : "example.com"
  }
}
  • New Addon event

When: Each time an addon is added to the app type=new_addon

field type description
addon_provider_name string Name of the addon provider
plan_name string Plan associated to the addon
resource_id string Resource ID given by addon provider

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "new_addon",
  "type_data": {
    "addon_provider_name": "scalingo-mysql",
    "plan_name" : "free",
    "resource_id": "0abcdef-123456-bcccde-1bcdef"
  }
}
  • Upgrade Addon event

When: The plan of the addon has been changed type=upgrade_addon

field type description
addon_provider_name string Name of the addon provider
old_plan_name string Previous plan of the addon
new_plan_name string New plan associated to the addon
resource_id string Resource ID given by addon provider

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "new_addon",
  "type_data": {
    "addon_provider_name": "scalingo-mysql",
    "old_plan_name" : "free",
    "new_plan_name" : "1g",
    "resource_id": "0abcdef-123456-bcccde-1bcdef"
  }
}
  • Delete Addon event

When: The addon has been removed from the app type=delete_addon

field type description
addon_provider_name string Name of the addon provider
plan_name string Plan associated to the addon
resource_id string Resource ID given by addon provider

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "new_addon",
  "type_data": {
    "addon_provider_name": "scalingo-mysql",
    "plan_name" : "1g",
    "resource_id": "0abcdef-123456-bcccde-1bcdef"
  }
}
  • Database - Add Feature event

When: A feature is added to a database addon type=database/add_feature

field type description
feature string Name of the addon enabled addon feature
addon_provider_name string Name of the addon provider
addon_provider_id string ID of the addon provider
addon_uuid string ID (UUIDv4) of the addon resource
remote_ip string Remote IP doing the action

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "database/add_feature",
  "type_data": {
    "feature": "force-ssl",
    "remote_ip": "1.2.3.4",
    "addon_uuid": "ad-012345678-1234-5678-12345678",
    "addon_provider_id": "6343eccd646173000a140000",
    "addon_provider_name": "postgresql"
  }
}
  • Database - Remove feature event

When: A feature has been removed from a database addon type=database/remove_feature

field type description
feature string Name of the addon disabled addon feature
addon_provider_name string Name of the addon provider
addon_provider_id string ID of the addon provider
addon_uuid string ID (UUIDv4) of the addon resource
remote_ip string Remote IP doing the action

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "database/remove_feature",
  "type_data": {
    "feature": "force-ssl",
    "remote_ip": "1.2.3.4",
    "addon_uuid": "ad-012345678-1234-5678-12345678",
    "addon_provider_id": "6343eccd646173000a140000",
    "addon_provider_name": "postgresql"
  }
}
  • New Collaborator event

When: Each time a collaboration invitation is sent type="new_collaborator"

field type description
collaborator.email string Email of the invited person
collaborator.is_limited string Is limited collaborator

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "new_collaborator",
  "type_data": {
    "collaborator": {
      "email": "test@example.com",
      "is_limited": false,
    }
  }
}
  • Accept Collaborator event

When: The invitee accepts the collaboration invitation for an app type="accept_collaborator"

field type description
collaborator.id string ID of the invited user if user exists
collaborator.email string Email of the invited person
collaborator.username string Username of the invited person
collaborator.inviter.email string Email of the inviter
collaborator.inviter.username string Username of the inviter
collaborator.is_limited string Is limited collaborator

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "test-example",
    "email": "test@example.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "edit_collaborator",
  "type_data": {
    "collaborator": {
      "id": "51e6bc626edfe40bbb000001",
      "email": "test@example.com",
      "username": "text-example",
      "inviter": {
        "email": "john@doe.com",
        "username": "johndoe"
      },
      "is_limited": false,
    }
  }
}
  • Delete Collaborator event

When: The collaborator has been removed from the app type="delete_collaborator"

field type description
collaborator.id string ID of the collaborator
collaborator.email string Email of the collaborator (if collaboration accepted)
collaborator.username string Username of the collaborator (if collaboration accepted)

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "delete_collaborator",
  "type_data": {
    "collaborator": {
      "id": "51e6bc626edfe40bbb000002",
      "username": "test-example",
      "email": "test@example.com"
    }
  }
}
  • Change Collaborator Role event

When: The collaborator role has been changed for the app type="change_collaborator_role"

field type description
collaborator.id string ID of the collaborator
collaborator.email string Email of the collaborator
collaborator.username string Username of the collaborator
collaborator.is_limited boolean Is the collaborator limited or not

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "delete_collaborator",
  "type_data": {
    "collaborator": {
      "id": "51e6bc626edfe40bbb000002",
      "username": "test-example",
      "email": "test@example.com",
      "is_limited": true,
    }
  }
}
  • New Variable event

When: Each time a variable is added to the application type=new_variable

field type description
name string Name of the newly created variable
value string Value of the new variable

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "new_event",
  "type_data": {
    "name" : "VAR1",
    "value" : "VAL1"
  }
}
  • Edit Variable event

When: Each time a variable is modified type=edit_variable

field type description
name string Name of the modified variable
value string New value of the modified variable
old_value string Previous value of the modified variable

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "edit_variable",
  "type_data": {
    "name" : "VAR1",
    "old_value" : "VAL1",
    "value" : "VAL2"
  }
}
  • Edit multiple variables event

When: Each time the bulk updates is used type=edit_variables

field type description
new_vars array List of the newly created variables
updated_vars array List of the updated variables
deleted_vars array List of the deleted variables
new_vars[].name string Name of the variable
new_vars[].value string Value of the variable
updated_vars[].name string Name of the variables
updated_vars[].old_value string Old value of the updated variable
updated_vars[].value string New value of the updated variable
deleted_vars[].name string Name of the variable
deleted_vars[].value string Value of the variable

Example object

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "edit_variable",
  "type_data": {
    "updated_vars": [{
      "name": "VAR1",
      "value": "VAL1"
    }],
    "new_vars": [{
      "name": "VAR2",
      "value": "VAL2",
      "old_value": "OLD_VAL2"
    }]
  }
}
  • Delete variable event

When: Each time a variable is deleted type=delete_variable

field type description
name string Name of the deleted variable
value string Value of the deleted variable

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "delete_variable",
  "type_data": {
    "name" : "VAR1",
    "value" : "VAL2"
  }
}
  • Add Credit event

When: After adding credit (i.e. with PayPal) type=add_credit

field type description
payment_method string Type of payment done
amount float Amount of credit added

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type": "add_credit",
  "type_data": {
    "payment_method" : "paypal",
    "value" : 50.0
  }
}
  • Add Payment Method event

When: When you register a payment method like a credit card for your account type=add_payment_method

field type description
billing_profile object Object containing your the payment method

Billing Profile:

field type description
company string Company name
vat_number string EU VAT registration number
payment_method_type string Payment method type name
stripe object data about credit card

Stripe:

field type description
brand string Brand of the card
last4 string Last 4 numbers of the card
exp string Expiry date of the card

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type": "add_payment_method",
  "type_data": {
    "company": "Scalingo SAS",
    "vat_number" : "FR0000000000",
    "payment_method_type": "stripe",
    "stripe": {
      "brand": "mastercard",
      "last4": "4242",
      "exp": "01/2017"
    }
  }
}
  • Add Voucher event

When: A voucher has been added type=add_voucher

field type description
code string Voucher code

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type": "add_voucher",
  "type_data": {
    "code": "MYVOUCHER"
  }
}
  • New Log Drain event

When: Each time a log drain is added to an app type=new_log_drain

field type description
url string URL of the log drain

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type": "new_log_drain",
  "type_data": {
    "url": "tcp+tls://localhost:8080"
  }
}
  • Delete Log Drain event

When: Each time a log drain is deleted from an app type=delete_log_drain

field type description
url string URL of the log drain

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type": "delete_log_drain",
  "type_data": {
    "url": "tcp+tls://localhost:8080"
  }
}
  • New Addon Log Drain event

When: Each time a log drain is added to an addon type=new_addon_log_drain

field type description
url string URL of the log drain
addon_uuid string UUID of the addon
addon_name string Name of the addon

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type": "new_log_drain",
  "type_data": {
    "url": "tcp+tls://localhost:8080",
    "addon_uuid": "0abcdef-123456-bcccde-1bcdef",
    "addon_name": "mongo"
  }
}
  • Delete Addon Log Drain event

When: Each time a log drain is deleted from an addon type=delete_addon_log_drain

field type description
url string URL of the log drain
addon_uuid string UUID of the addon
addon_name string Name of the addon

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type": "delete_log_drain",
  "type_data": {
    "url": "tcp+tls://localhost:8080",
    "addon_uuid": "0abcdef-123456-bcccde-1bcdef",
    "addon_name": "mongo"
  }
}
  • Link an SCM integration to an App event

When: Each time an SCM integration link is created to an app type=link_scm

field type description
repo_name string Name of the repository
linker_username string Username of the linker
source string Source URL of the repository
branch string Branch of the repository the integration link is made to
auto_deploy boolean Auto-deploy the app when the parametered branch is updated
auto_deploy_review_apps boolean Auto-deploy a Review App when a Pull/Merge Request is opened
delete_on_close boolean Delete the Review App when the related Pull/Merge Request is closed
delete_stale boolean Delete the Review App when the related Pull/Merge Request is staled
hours_before_delete_on_close integer Hours before deleting the Review App when the related Pull/Merge Request is closed
hours_before_delete_stale integer Hours before deleting the Review App when the related Pull/Merge Request is staled
creation_from_forks_allowed boolean Auto-deploy a Review App when a Pull/Merge Request is opened on a fork of the related repository

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2020-09-22T09:00:00.000Z",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "link_scm",
  "type_data": {
    "repo_name": "johndoe/sample-go-martini",
    "linker_username": "johndoe",
    "source": "https://github.com/johndoe/sample-go-martini",
    "branch": "main",
    "auto_deploy": true,
    "auto_deploy_review_apps": true,
    "delete_on_close": true,
    "delete_stale": true,
    "hours_before_delete_on_close": 5,
    "hours_before_delete_stale": 0,
    "creation_from_forks_allowed": false
  }
}
  • Update an SCM integration from an App event

When: Each time an SCM integration link is created to an app type=update_scm

field type description
repo_name string Name of the repository
linker_username string Username of the linker
source string Source URL of the repository
branch string Branch of the repository the integration link is made to
auto_deploy boolean Auto-deploy the app when the parametered branch is updated
auto_deploy_review_apps boolean Auto-deploy a Review App when a Pull/Merge Request is opened
delete_on_close boolean Delete the Review App when the related Pull/Merge Request is closed
delete_stale boolean Delete the Review App when the related Pull/Merge Request is staled
hours_before_delete_on_close integer Hours before deleting the Review App when the related Pull/Merge Request is closed
hours_before_delete_stale integer Hours before deleting the Review App when the related Pull/Merge Request is staled
creation_from_forks_allowed boolean Auto-deploy a Review App when a Pull/Merge Request is opened on a fork of the related repository

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2020-09-22T09:00:00.000Z",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "update_scm",
  "type_data": {
    "repo_name": "johndoe/sample-go-martini",
    "linker_username": "johndoe",
    "source": "https://github.com/johndoe/sample-go-martini",
    "branch": "main",
    "auto_deploy": true,
    "auto_deploy_review_apps": true,
    "delete_on_close": true,
    "delete_stale": true,
    "hours_before_delete_on_close": 5,
    "hours_before_delete_stale": 0,
    "creation_from_forks_allowed": false
  }
}
  • Unlink an SCM integration from an App event

When: Each time an SCM integration link is deleted from an app type=unlink_scm

field type description
repo_name string Name of the repository
unlinker_username string Username of the unlinker
source string Source URL of the repository

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2020-09-22T09:10:00.000Z",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "unlink_scm",
  "type_data": {
    "repo_name": "johndoe/sample-go-martini",
    "linker_username": "johndoe",
    "source": "https://github.com/johndoe/sample-go-martini"
  }
}
  • Review App created event

When: Each time a Review App is created type=create_review_app

field type description
review_app_name string Name of the Review App
review_app_url string Dashboard URL of the Review App
source_repo_name string Name of the repository the Pull/Merge Request originates from
source_repo_url string URL of the repository the Pull/Merge Request originates from
pr_name string Pull/Merge Request name
pr_number integer Pull/Merge Request number
pr_url string Pull/Merge Request URL
pr_comes_from_a_fork boolean Whether the Pull/Merge Request originates from a fork of the repository

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2020-09-22T09:00:00.000Z",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "sample-go-martini",
  "type": "create_review_app",
  "type_data": {
    "review_app_name": "sample-go-martini-pr2",
    "review_app_url": "https://dashboard.scalingo.com/sample-go-martini-pr2",
    "source_repo_name": "johndoe/sample-go-martini",
    "source_repo_url": "https://github.com/johndoe/sample-go-martini",
    "pr_name": "Update the name",
    "pr_number": 3,
    "pr_url": "https://github.com/johndoe/sample-go-martini/pull/3",
    "pr_comes_from_a_fork": false
  }
}
  • Review App destroyed event

When: Each time a Review App is destroyed type=destroy_review_app

field type description
review_app_name string Name of the Review App
source_repo_name string Name of the repository the Pull/Merge Request originates from
source_repo_url string URL of the repository the Pull/Merge Request originates from
pr_name string Pull/Merge Request name
pr_number integer Pull/Merge Request number
pr_url string Pull/Merge Request URL
pr_comes_from_a_fork boolean Whether the Pull/Merge Request originates from a fork of the repository

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2020-09-22T09:00:00.000Z",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "sample-go-martini",
  "type": "destroy_review_app",
  "type_data": {
    "review_app_name": "sample-go-martini-pr2",
    "review_app_url": "https://dashboard.scalingo.com/sample-go-martini-pr2",
    "source_repo_name": "johndoe/sample-go-martini",
    "source_repo_url": "https://github.com/johndoe/sample-go-martini",
    "pr_name": "Update the name",
    "pr_number": 3,
    "pr_url": "https://github.com/johndoe/sample-go-martini/pull/3",
    "pr_comes_from_a_fork": false
  }
}
  • Successful Login

When: A successful login occurred type=login_success

field type description
remote_ip string Remote IP doing the action

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type": "login_success",
  "type_data": {
    "remote_ip": "1.2.3.4"
  }
}
  • Failed Login

When: A failed login attempt occurred type=login_failure

field type description
remote_ip string Remote IP doing the action

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type": "login_failure",
  "type_data": {
    "remote_ip": "1.2.3.4"
  }
}
  • Password Reset Query

When: A password reset attempt has been initiated type=password_reset_query

field type description
remote_ip string Remote IP doing the action

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type": "password_reset_query",
  "type_data": {
    "remote_ip": "1.2.3.4"
  }
}
  • Password Reset Success

When: Password was reseted successfully type=password_reset_success

field type description
remote_ip string Remote IP doing the action

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type": "password_reset_success",
  "type_data": {
    "remote_ip": "1.2.3.4"
  }
}
  • Account Locked

When: 10 Failed login attempted locked the account type=login_lock

field type description
remote_ip string Remote IP doing the action

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type": "login_lock",
  "type_data": {
    "remote_ip": "1.2.3.4"
  }
}
  • Account Unlocked

When: Account has been unlocked type=login_unlock_success

field type description
remote_ip string Remote IP doing the action

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type": "login_unlock_success",
  "type_data": {
    "remote_ip": "1.2.3.4"
  }
}
  • New Data Access Consent

When: Data Access Consent has been created type=create_data_access_consent

field type description
end_at datetime deadline of DataAccessConsent ISO 8601
databases boolean to allow databases
containers boolean to allow databases
remote_ip string Remote IP doing the action

Example object:

{
  "id":"54dcdd4a73636100011a0000",
  "created_at":"2022-07-01T13:29:12.679Z",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type":"create_data_access_consent",
  "type_data":
    {
      "end_at":"2022-07-14T00:00:00.000+00:00",
      "databases":true,
      "containers":true,
      "remote_ip": "1.2.3.4"
    },
}
  • Edit HDS Contact

When: HDS Contact has been updated type=edit_hds_contact

field type description
name string name of the contact
email string email of the contact
phone_number string phone_number of the contact
company string company of the contact
address_line1 string address_line1 of the contact
address_line2 string address_line2 of the contact
address_city string address_city of the contact
address_zip string address_zip of the contact
address_country string address_country of the contact
notes string notes about the contact
remote_ip string Remote IP doing the action

Example object:

{
  "id":"62d13ad1a5b6ec0001e553c8",
  "created_at":"2022-07-15T10:00:49.703Z",
  "type":"edit_hds_contact",
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type_data":
    {
      "name":"Médecin",
      "email":"test@test.com",
      "phone_number":"0600000006",
      "company":"company",
      "address_line1":"23 rue du bois",
      "address_line2":null,
      "address_city":"Strasbourg",
      "address_zip":"67000",
      "address_country":"FR",
      "notes":"test",
      "remote_ip": "1.2.3.4"
    },
}
  • Stack changed

When: App stack has been changed type=stack_changed

field type description
previous_stack_id string Previous stack Id
current_stack_id string Current stack Id
previous_stack_name string Previous stack name
current_stack_name string Current stack name

Example object:

{
  "id":"62d13ad1a5b6ec0001e553c8",
  "created_at":"2022-07-15T10:00:49.703Z",
  "type":"stack_changed",
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type_data": {
    "previous_stack_id": "st-2f83d71f-505c-4b40-89b4-04912cbfa911",
    "current_stack_id": "st-9d5bf098-01df-4194-8160-9779cfbc7122",
    "previous_stack_name": "scalingo-20",
    "current_stack_name": "scalingo-22"
  }
}
  • Database Maintenance Planned

When: A maintenance is scheduled on your database type=plan_database_maintenance

field type description
maintenance_id string The related maintenance ID
addon_name string The related addon name
maintenance_type string The type of maintenance executed
maintenance_window_in_hours integer The maintenance window duration (in hours)
next_maintenance_window datetime The beginning date of your next maintenance window

Example object:

{
  "id": "650312574002c001afcdf988",
  "created_at": "2023-09-14T14:01:59.916Z",
  "type": "plan_database_maintenance",
  "app_id": "649e9d0389bca600016ea61b",
  "app_name": "sample-go-martini",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type_data": {
    "addon_name": "Redis",
    "maintenance_id": "6503020ba8acb51a3278cf81",
    "maintenance_type": "no-op",
    "maintenance_window_in_hours": 8,
    "next_maintenance_window": "2023-09-14T21:00:00.000Z"
  }
}
  • Database Maintenance Started

When: A maintenance began on your database type=start_database_maintenance

field type description
maintenance_id string The related maintenance ID
addon_name string The related addon name
maintenance_type string The type of maintenance executed
maintenance_window_in_hours integer The maintenance window duration (in hours)
next_maintenance_window datetime The beginning date of your next maintenance window

Example object:

{
  "id": "650312574002c001afcdf988",
  "created_at": "2023-09-14T14:01:59.916Z",
  "type": "start_database_maintenance",
  "app_id": "649e9d0389bca600016ea61b",
  "app_name": "sample-go-martini",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type_data": {
    "addon_name": "Redis",
    "maintenance_id": "6503020ba8acb51a3278cf81",
    "maintenance_type": "no-op",
    "maintenance_window_in_hours": 8,
    "next_maintenance_window": "2023-09-14T21:00:00.000Z"
  }
}
  • Database Maintenance Completed

When: A maintenance as completed on your database type=complete_database_maintenance

field type description
maintenance_id string The related maintenance ID
addon_name string The related addon name
maintenance_type string The type of maintenance executed
maintenance_window_in_hours integer The maintenance window duration (in hours)
next_maintenance_window datetime The beginning date of your next maintenance window

Example object:

{
  "id": "650312574002c001afcdf988",
  "created_at": "2023-09-14T14:01:59.916Z",
  "type": "complete_database_maintenance",
  "app_id": "649e9d0389bca600016ea61b",
  "app_name": "sample-go-martini",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type_data": {
    "addon_name": "Redis",
    "maintenance_id": "6503020ba8acb51a3278cf81",
    "maintenance_type": "no-op",
    "maintenance_window_in_hours": 8,
    "next_maintenance_window": "2023-09-14T21:00:00.000Z"
  }
}
  • Database Backup Succeeded

When: A database backup has been successfully completed type=database_backup_succeeded

field type description
addon_name string The related addon name
resource_id string The related addon resource ID
addon_uuid string The related addon UUID
backup_id string The ID of the completed backup
backup_status string The status of the backup
started_at datetime The date and time when the backup started
ended_at datetime The date and time when the backup completed

Example object:

{
  "id": "692025dad488619977f4baff",
  "created_at": "2025-11-21T08:42:02.103Z",
  "type": "database_backup_succeeded",
  "app_id": "649e9d0389bca600016ea61b",
  "app_name": "sample-go-martini",
  "user": {
    "username": "scalingo-platform",
    "email": "deploy@scalingo.com",
    "id": "us-b32ca09d-1608-4e6f-8f14-302b447b0e14"
  },
  "type_data": {
    "addon_name": "Redis",
    "resource_id": "sample-go-martini-6184",
    "addon_uuid": "ad-75364c08-2e76-4018-8db4-d7ebbd7537c8",
    "backup_id": "692025a88e61d0039cf25ea3",
    "backup_status": "done",
    "started_at": "2025-11-21T08:41:15.516Z",
    "ended_at": "2025-11-21T08:41:27.287Z"
  }
}
  • Database Backup Failed

When: A database backup has failed type=database_backup_failed

field type description
addon_name string The related addon name
resource_id string The related addon resource ID
addon_uuid string The related addon UUID
backup_id string The ID of the failed backup
backup_status string The status of the backup
started_at datetime The date and time when the backup started
ended_at datetime The date and time when the backup failed

Example object:

{
  "id": "692025dad488619977f4baff",
  "created_at": "2025-11-21T08:42:02.103Z",
  "type": "database_backup_failed",
  "app_id": "649e9d0389bca600016ea61b",
  "app_name": "sample-go-martini",
  "user": {
    "username": "scalingo-platform",
    "email": "deploy@scalingo.com",
    "id": "us-b32ca09d-1608-4e6f-8f14-302b447b0e14"
  },
  "type_data": {
    "addon_name": "Redis",
    "resource_id": "sample-go-martini-6184",
    "addon_uuid": "ad-75364c08-2e76-4018-8db4-d7ebbd7537c8",
    "backup_id": "692025a88e61d0039cf25ea3",
    "backup_status": "error",
    "started_at": "2025-11-21T08:41:15.516Z",
    "ended_at": "2025-11-21T08:41:27.287Z"
  }
}
  • New Project Created

When: A new project has been created type=new_project

field type description
default boolean Whether the project is a default project or not

Example object:

{
  "id": "650312574002c001afcdf988",
  "created_at": "2023-09-14T14:01:59.916Z",
  "project_id": "649e9d0389bca600016ea61b",
  "project_name": "project-1",
  "type": "new_project",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type_data": {
    "default": true
  }
}
  • Project Edited

When: A project is renamed and/or switched to default type=edit_project

field type description
updated_values array List of the updated attributes
updated_values[].name string Name of the attribute
updated_values[].value string New value of the updated attribute
updated_values[].old_value string Old value of the updated attribute

Example object:

{
  "id": "650312574002c001afcdf988",
  "created_at": "2023-09-14T14:01:59.916Z",
  "project_id": "649e9d0389bca600016ea61b",
  "project_name": "project-1",
  "type": "edit_project",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type_data": {
    "updated_values": [
      {"name": "name", "value": "new-project-name", "old_value": "initial-project-name"},
      {"name": "default", "value": false, "old_value": true}
    ]
  }
}
  • Project transfer invitation event base

When: Common attributes for project transfer invitation events.

field type description
transfer_invitation_id string ID of the transfer invitation
invited_user.id string ID of the invited collaborator
invited_user.email string Email of the invited collaborator
invited_user.username string Username of the invited collaborator
inviter.id string ID of the inviter
inviter.email string Email of the inviter
inviter.username string Username of the inviter
status string Invitation status (pending, accepted, declined, canceled, failed, error)
status_reason string Reason of transfer action failure
expires_at date Expiration date of the invitation
  • Accept project transfer invitation event

When: A project transfer invitation is accepted type=accept_project_transfer_invitation

Example object:

{
  "id": "650312574002c001afcdf988",
  "created_at": "2023-09-14T14:01:59.916Z",
  "project_id": "649e9d0389bca600016ea61b",
  "project_name": "project-1",
  "type": "accept_project_transfer_invitation",
  "user": {
    "username": "alice",
    "email": "alice@example.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type_data": {
    "transfer_invitation_id": "tin-01234567-89ab-cdef-0123-456789abcdef",
    "invited_user": {
      "id": "54100245736f7563d5000000",
      "username": "alice",
      "email": "alice@example.com"
    },
    "inviter": {
      "id": "54100245736f7563d5000000",
      "username": "john",
      "email": "user@example.com"
    },
    "status": "accepted",
    "status_reason": "",
    "expires_at": "2014-09-13T10:17:52.690+02:00"
  }
}
  • Accept project transfer invitation error event

When: Accepting a project transfer invitation fails type=accept_project_transfer_invitation_error

Example object:

{
  "id": "650312574002c001afcdf988",
  "created_at": "2023-09-14T14:01:59.916Z",
  "project_id": "649e9d0389bca600016ea61b",
  "project_name": "project-1",
  "type": "accept_project_transfer_invitation_error",
  "user": {
    "username": "alice",
    "email": "alice@example.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type_data": {
    "transfer_invitation_id": "tin-01234567-89ab-cdef-0123-456789abcdef",
    "invited_user": {
      "id": "54100245736f7563d5000000",
      "username": "alice",
      "email": "alice@example.com"
    },
    "inviter": {
      "id": "54100245736f7563d5000000",
      "username": "john",
      "email": "user@example.com"
    },
    "status": "failed",
    "status_reason": "You must be collaborator on all resources",
    "expires_at": "2014-09-13T10:17:52.690+02:00",
  }
}
  • Cancel project transfer invitation event

When: A project transfer invitation is canceled by the inviter type=cancel_project_transfer_invitation

Example object:

{
  "id": "650312574002c001afcdf988",
  "created_at": "2023-09-14T14:01:59.916Z",
  "project_id": "649e9d0389bca600016ea61b",
  "project_name": "project-1",
  "type": "cancel_project_transfer_invitation",
  "user": {
    "username": "john",
    "email": "user@example.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type_data": {
    "transfer_invitation_id": "tin-01234567-89ab-cdef-0123-456789abcdef",
    "invited_user": {
      "id": "54100245736f7563d5000000",
      "username": "alice",
      "email": "alice@example.com"
    },
    "inviter": {
      "id": "54100245736f7563d5000000",
      "username": "john",
      "email": "user@example.com"
    },
    "status": "canceled",
    "status_reason": "",
    "expires_at": "2014-09-13T10:17:52.690+02:00"
  }
}
  • Decline project transfer invitation event

When: A project transfer invitation is declined by the invited collaborator type=decline_project_transfer_invitation

Example object:

{
  "id": "650312574002c001afcdf988",
  "created_at": "2023-09-14T14:01:59.916Z",
  "project_id": "649e9d0389bca600016ea61b",
  "project_name": "project-1",
  "type": "decline_project_transfer_invitation",
  "user": {
    "username": "alice",
    "email": "alice@example.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type_data": {
    "transfer_invitation_id": "tin-01234567-89ab-cdef-0123-456789abcdef",
    "invited_user": {
      "id": "54100245736f7563d5000000",
      "username": "alice",
      "email": "alice@example.com"
    },
    "inviter": {
      "id": "54100245736f7563d5000000",
      "username": "john",
      "email": "user@example.com"
    },
    "status": "declined",
    "status_reason": "",
    "expires_at": "2014-09-13T10:17:52.690+02:00"
  }
}
  • Project Deleted

When: A project has been deleted type=delete_project

Example object:

{
  "id": "650312574002c001afcdf988",
  "created_at": "2023-09-14T14:01:59.916Z",
  "project_id": "649e9d0389bca600016ea61b",
  "project_name": "project-1",
  "type": "delete_project",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "type_data": {}
}
  • Update app project event

When: the application is moved from a project to another type=update_app_project

field type description
old_project_name string Previous name of the project
old_project_id string Previous ID of the project
new_project_name string New name of the project
new_project_id string New ID of the project

Example object:

{
  "id": "54dcdd4a73636100011a0000",
  "created_at": "2015-02-12T18:05:14.226+01:00",
  "user": {
    "username": "johndoe",
    "email": "john@doe.com",
    "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
  },
  "app_id": "5343eccd646173000a140000",
  "app_name": "appname",
  "type": "update_app_project",
  "type_data": {
    "old_project_name": "old-project-name",
    "old_project_id": "prj-1234567890abcdef",
    "new_project_name": "new-project-name",
    "new_project_id": "prj-abcdef1234567890"
  }
}

List the Events of an App

With this list of events, you can reconstruct the timeline of an application.

GET https://$SCALINGO_API_URL/v1/apps/[:app]/events

Feature: This endpoint supports pagination.

Parameters

  • from (Optional, min: 1, max: 72): Send the event from the last N hours. (Override any pagination options)

Request Example

curl -H "Accept: application/json" -H "Content-Type: application/json" \
  -H "Authorization: Bearer $BEARER_TOKEN" https://$SCALINGO_API_URL/v1/apps/[:app]/events

Returns 200 OK

Response object:

{
  "events": [
  {
    "id": "54dcdd4a73636100011a0000",
    "created_at": "2015-02-12T18:05:14.226+01:00",
    "user": {
      "username": "johndoe",
      "email": "john@doe.com",
      "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
    },
    "app_id": "5343eccd646173000a140000",
    "app_name": "appname",
    "type": "run",
    "type_data": {
      "command": "rake db:migrate"
    }
  }, {
    "id": "54dcdd4a73636100011a0000",
    "created_at": "2015-02-12T18:05:14.226+01:00",
    "user": {
      "username": "johndoe",
      "email": "john@doe.com",
      "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
    },
    "app_id": "5343eccd646173000a140000",
    "app_name": "appname",
    "type": "deployment",
    "type_data": {
      "deployment_id": "5343eccd646aa3012a140230",
      "pusher": "johndoe",
      "git_ref" : "0123456789abcdef",
      "status": "success",
      "duration": 40
    }
  }, (...)],
  "meta": {
    "pagination": {
      "current_page": 1,
      "next_page": 2,
      "prev_page": null,
      "total_pages": 4,
      "total_count": 61
    }
  }
}

List Current User Events

With this list of events, you can reconstruct the timeline of your user. You’ll get the events which have been done by the user on themself, and on their apps.

GET https://$SCALINGO_API_URL/v1/events

Feature: This endpoint supports pagination.

Request Example

curl -H "Accept: application/json" -H "Content-Type: application/json" \
  -H "Authorization: Bearer $BEARER_TOKEN" https://$SCALINGO_API_URL/v1/events

Returns 200 OK

Response object:

{
  "events": [
    {
      "id": "54dcdd4a73636100011a0000",
      "created_at": "2015-02-12T18:01:52.000+01:00",
      "user": {
        "username": "johndoe",
        "email": "john@doe.com",
        "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
      },
      "type": "run",
      "type_data": {
        "payment_method": "paypal",
        "amount": 50.0
      }
    }, {
      "id": "54dcdd4a73636100011a0000",
      "created_at": "2015-02-12T18:05:14.226+01:00",
      "user": {
        "username": "johndoe",
        "email": "john@doe.com",
        "id": "us-0e6d8e46-5cd0-42a4-acba-372b2be605ac"
      },
      "app_id": "5343eccd646173000a140000",
      "app_name": "appname",
      "type": "run",
      "type_data": {
        "command": "rake db:migrate"
      }
    }, (...)
  ],
  "meta": {
    "pagination": {
      "current_page": 1,
      "next_page": 2,
      "prev_page": null,
      "total_pages": 13,
      "total_count": 252
    }
  }
}