Getting Started With Webhooks

OnRamp supports Webhooks. You can request that OnRamp post a message to a URL of your choosing, whenever an event occurs.

We currently support the following events that can be subscribed to:

Event Nameevent_idDescription
Add Projectadd_projectThis event fires whenever a new project is created.
Edit Projectedit_projectEdit Project is fired whenever a project's settings have been edited.
Update Sub Taskupdate_stepAs sub tasks are marked as complete, this event fires.
Add Sub Taskadd_task_stepAs new sub-tasks are added to tasks, this event will execute.
Update Task Stateupdate_task_stateWhen a task's state changes due to a sub-task being completed or the overall task is marked as completed, this event will fire.
Project Completedproject_completedWhen a project's last task is completed and/or when a project is marked as completed this task will fire.
Project Task Completedproject_task_completedWhenever a task and all of its required steps are completed, this event will fire.
Add Project Noteadd_project_noteWhen a note is added to a project, this event will fire
Edit Project Noteedit_project_noteWhen a note is updated, this event will fire
Delete Project Notedelete_project_noteWhen a note is deleted, this event will fire

You can start by listing your existing webhooks if you have any

curl --request GET \
  --url https://api.onramp.us/v1/admin/webhooks \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2NTE0ODg1MzYsImlhdCI6MTY1MTQ4NTUzNiwic3ViIjoiZmE2ZjhhZGMtY2I2MS00MzcyLWJiMGItMjU2MWZhMTcxNTk2In0.2vxBOo37ryAAZ-dP3kx37op1hIAVPpCNEFQZm9-BtSc' \
  --header 'Content-Type: text/plain'

Which may result in a response similar to

{
 "webhooks": [
   {
    "id": 7370642953,
    "address": "https://example.yourdomain.com/",
    "topic": "add_project",
    "created_at": "2022-02-03"
 	 }
 ]
}

You can create a new webhook

curl --request POST \
  --url http://api.onramp.us/v1/admin/webhook/create \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2NTE0ODg1MzYsImlhdCI6MTY1MTQ4NTUzNiwic3ViIjoiZmE2ZjhhZGMtY2I2MS00MzcyLWJiMGItMjU2MWZhMTcxNTk2In0.2vxBOo37ryAAZ-dP3kx37op1hIAVPpCNEFQZm9-BtSc' \
  --header 'Content-Type: application/json' \
  --data '{
  "webhook": {
    "topic":"add_project",
    "address": "https://webhooks.yourdomain.com/onramp",
  }
}'