V5ApiPrivate (1.0)
Download OpenAPI specification:Download
This is the private API for Tiltify. It includes endpoints that require specific oauth scopes in order to access. It can be considered as an extension to the public api, but with additional endpoints that may return sensitive information.
Authorization
Authorization # Please see the public api documentation for additional authorization instructions.
Authorize
Returns a code
through the applications redirect_uri
to be used with the /token
with the authorization_code
grant.
Authorizations:
query Parameters
client_id required | string Client Id |
redirect_uri required | string Redirect URI |
response_type required | string Value: "code" Response Type |
scope | string Default: "public" Enum: "public" "cause" "webhooks:write" Scope |
Token
Returns an access and refresh token with a provided client id, secret, and grant type. Tokens expire in 7200
seconds.
Authorizations:
query Parameters
client_id required | string Client Id |
client_secret required | string Client Secret |
grant_type required | string Default: "client_credentials" Enum: "client_credentials" "authorization_code" "refresh_token" Grant Type |
code | string Authorization Code; |
refresh_token | string Refresh Token; |
scope | string Default: "public" Enum: "public" "cause" "webhooks:write" Scope |
Responses
Response samples
- 200
- 401
- 404
- 422
{- "access_token": "ab6a592346444dea97170837e104d8a5ab6a592346444dea97170837e104d8a5",
- "created_at": "2023-01-27T19:32:03Z",
- "expires_in": 7200,
- "refresh_token": "njjjytm3otetmgrjmi00yjawlwe4zgytzjixy2mzm2y3njawcg121231999393a3",
- "scope": "public",
- "token_type": "bearer"
}
Activates a webhook endpoint
Requires scope:webhooks:write
This endpoint will activate a given webhook endpoint. Webhook endpoints may be deactivated if they fail to respond sucessfully to our webhooks. This endpoint can be called programatically to ensure that your webhook endpoint is enabled when your listening application starts.
Authorizations:
path Parameters
webhook_endpoint_id required | string Webhook Endpoint ID |
Responses
Response samples
- 200
- 401
- 403
- 404
- 422
{- "activated_at": "2024-09-03T18:26:32.497059Z",
- "deactivated_at": null,
- "description": "My Webhook Endpoint for Tiltify Fundraisers.",
- "id": "35ab4ec1-1ab3-432a-9420-90e403343e6f",
- "inserted_at": "2024-09-03T18:26:32.497100Z",
- "status": "active",
- "updated_at": "2024-09-03T18:26:32.497105Z",
}
Deletes a Webhook Subscription
Requires scope:webhooks:write
Deletes a Webhook Subscription to a given webhook_endpoint_id and event_id. This will either delete an existing webhook subscription to the given event or return a null value if the subscription no longer exists.
Authorizations:
path Parameters
webhook_endpoint_id required | string Webhook Endpoint ID |
event_id required | string Campaign/Team Campaign/Fundraising Event public_id |
Responses
Response samples
- 200
- 401
- 403
- 404
- 422
{- "event_id": "3c9420c3-2e2b-44a7-a7d5-e615ae2abe8f",
- "event_types": [
- "public:direct:donation_updated",
- "public:direct:fact_updated"
], - "id": "4446825d-3d99-4e00-8522-bedc765a6834",
- "inserted_at": "2024-11-13T20:04:12.289342Z",
- "updated_at": "2024-11-13T20:04:12.289357Z",
- "webhook_endpoint_id": "b3fc8eca-8ac1-4f42-8b67-193f12e66884"
}
Creates or Updates a Webhook Subscription
Requires scope:webhooks:write
Creates or Updates a Webhook Subscription to a given webhook_endpoint_id and event_id. This will either update an existing webhook subscription to the given event, or create a new one with the provided event types.
Event Types
Event types consist of a scope, locality, and event.
Scope
The public
scope is always available, and the private
scope is not currently available through the API.
Locality
This describes the source of the event, whether direct
to the subscribed event, or indirect
when the event occurs on one of the children of that event. For example all events under a fundraising event, or the campaigns under a team campaign.
Event
This describes the event that is going to be send via webhook. donation_updated
will send donation events, and fact_updated
will send event updates, for example if you need to get the totals raised by a given event.
List of supported event_types:
- public:direct:auction_bid_amount_updated
- public:direct:donation_updated
- public:direct:fact_updated
- public:indirect:donation_updated
- public:indirect:fact_updated
Authorizations:
path Parameters
webhook_endpoint_id required | string Webhook Endpoint ID |
event_id required | string Campaign/Team Campaign/Fundraising Event public_id |
Request Body schema: application/jsonoptional
PUT request body to update a webhook subscription
event_types required | Array of strings Items Enum: "private:direct:auction_bid_amount_updated" "private:direct:donation_updated" "private:direct:fact_updated" "private:indirect:donation_updated" "private:indirect:fact_updated" "public:direct:auction_bid_amount_updated" "public:direct:donation_updated" "public:direct:fact_updated" "public:indirect:donation_updated" "public:indirect:fact_updated" The list of event types this subscription should be subscribed to. |
Responses
Request samples
- Payload
{- "event_types": [
- "public:direct:donation_updated"
]
}
Response samples
- 200
- 401
- 403
- 404
- 422
{- "event_id": "3c9420c3-2e2b-44a7-a7d5-e615ae2abe8f",
- "event_types": [
- "public:direct:donation_updated",
- "public:direct:fact_updated"
], - "id": "4446825d-3d99-4e00-8522-bedc765a6834",
- "inserted_at": "2024-11-13T20:04:12.289342Z",
- "updated_at": "2024-11-13T20:04:12.289357Z",
- "webhook_endpoint_id": "b3fc8eca-8ac1-4f42-8b67-193f12e66884"
}
Creates or Updates a Webhook Subscription Deprecated
Use putWebhookSubscription instead. This operation was deprecated due to a spelling error.
Authorizations:
path Parameters
webhook_endpoint_id required | string Webhook Endpoint ID |
event_id required | string Campaign/Team Campaign/Fundraising Event public_id |
Request Body schema: application/jsonoptional
PUT request body to update a webhook subscription
event_types required | Array of strings Items Enum: "private:direct:auction_bid_amount_updated" "private:direct:donation_updated" "private:direct:fact_updated" "private:indirect:donation_updated" "private:indirect:fact_updated" "public:direct:auction_bid_amount_updated" "public:direct:donation_updated" "public:direct:fact_updated" "public:indirect:donation_updated" "public:indirect:fact_updated" The list of event types this subscription should be subscribed to. |
Responses
Request samples
- Payload
{- "event_types": [
- "public:direct:donation_updated"
]
}
Response samples
- 200
- 401
- 403
- 404
- 422
{- "event_id": "3c9420c3-2e2b-44a7-a7d5-e615ae2abe8f",
- "event_types": [
- "public:direct:donation_updated",
- "public:direct:fact_updated"
], - "id": "4446825d-3d99-4e00-8522-bedc765a6834",
- "inserted_at": "2024-11-13T20:04:12.289342Z",
- "updated_at": "2024-11-13T20:04:12.289357Z",
- "webhook_endpoint_id": "b3fc8eca-8ac1-4f42-8b67-193f12e66884"
}
List Relay Keys by Webhook Relay ID
Returns Webhook Relay Keys for a Webhook Relay
Authorizations:
path Parameters
webhook_relay_id required | string Webhook Relay ID |
query Parameters
after | string Returns records after the given cursor |
before | string Returns records before the given cursor |
limit | integer [ 1 .. 100 ] Default: 10 |
Responses
Response samples
- 200
- 401
- 403
- 404
- 422
{- "data": [
- {
- "client_key": "6aae6f572e18c5caf307e192e4fe2a353a0a4527803101105e481e1a53582c2b",
- "donation": {
- "amount": {
- "currency": "USD",
- "value": "182.32"
}, - "campaign_id": "a3f0030f-4179-4b41-b5b7-899bccc7e606",
- "cause_id": "7f5e1e3f-bc44-40c8-a9cd-a9f65b0b71dc",
- "completed_at": "2024-11-13T20:04:12.308655Z",
- "donation_matches": [
- {
- "active": true,
- "amount": {
- "currency": "USD",
- "value": "182.32"
}, - "completed_at": "2024-10-09T17:33:18.387586Z",
- "donation_id": "51e294d3-46af-443a-9aec-478394a9c9ec",
- "ends_at": "2024-10-09T17:33:18.387582Z",
- "id": "082d73ae-fb6d-472c-80a3-0c24cee62744",
- "inserted_at": "2024-10-09T17:33:18.387559Z",
- "matched_by": "Big Donor 1",
- "pledged_amount": {
- "currency": "USD",
- "value": "182.32"
}, - "started_at_amount": {
- "currency": "USD",
- "value": "182.32"
}, - "starts_at": "2024-10-09T17:33:18.387578Z",
- "total_amount_raised": {
- "currency": "USD",
- "value": "182.32"
}, - "updated_at": "2024-10-09T17:33:18.387574Z"
}
], - "donor_comment": "Keep up the great work!",
- "donor_name": "Test Name",
- "fundraising_event_id": "27ab8aed-0d6f-4ac5-9158-372e59505177",
- "id": "1a8808b5-aee3-4ce8-b028-9ef402b60598",
- "legacy_id": 51558945,
- "payment_status": "completed",
- "poll_id": "49159b71-042c-481b-b712-9674c7bf5c5e",
- "poll_option_id": "db8f5a67-8493-4b7f-ae6c-d723246b9550",
- "reward_claims": [
- {
- "id": "884e7354-443c-45e4-bac7-2d5bfefb2078",
- "quantity": 1,
- "reward_id": "d9ffb1fb-b44f-4657-b12e-cfa7c43026a5"
}
], - "reward_id": "2ccc0968-8e86-4430-893c-a33367e6a8d0",
- "sustained": false,
- "target_id": "0e5eda33-6ccc-4fce-89fc-a6911399dba2",
- "team_event_id": "4a40d89e-0d06-4e4d-865c-80f49e67aa9c"
}, - "id": "f0233466-4c1f-42bd-951a-86473f69fc5b",
- "inserted_at": "2024-11-13T20:04:12.507763Z",
- "metadata": "Q3VzdG9tIE1ldGFkYXRhIFN0cmluZw==",
- "updated_at": "2024-11-13T20:04:12.507779Z",
- "webhook_relay_id": "99ad8b70-64f0-406a-a824-0c7afe46ac52"
}
], - "metadata": {
- "after": "bGlnaHQgwd==",
- "before": null,
- "limit": 10
}
}
Creates a new Webhook Relay Key
Requires scope:webhooks:write
Creates a new Webhook Relay Key.
Authorizations:
path Parameters
webhook_relay_id required | string Webhook Relay ID |
Request Body schema: application/jsonoptional
POST request body to create a webhook relay key
id | string or null An Optional ID that you can use to lookup the Relay Key. If you do not pass one, we will generate an UUID for you. |
metadata | string or null An Optional string of metadata that will be associated with the relay key. Metadata will be stored, and sent to your webhook endpoint as is. |
Responses
Request samples
- Payload
{- "id": "internal_2Oycg8ksnPDz9ku2RhDuVuvEfmV",
- "metadata": "Q3VzdG9tIE1ldGFkYXRhIFN0cmluZw=="
}
Response samples
- 200
- 401
- 403
- 404
- 422
{- "client_key": "6aae6f572e18c5caf307e192e4fe2a353a0a4527803101105e481e1a53582c2b",
- "donation": {
- "amount": {
- "currency": "USD",
- "value": "182.32"
}, - "campaign_id": "a3f0030f-4179-4b41-b5b7-899bccc7e606",
- "cause_id": "7f5e1e3f-bc44-40c8-a9cd-a9f65b0b71dc",
- "completed_at": "2024-11-13T20:04:12.308655Z",
- "donation_matches": [
- {
- "active": true,
- "amount": {
- "currency": "USD",
- "value": "182.32"
}, - "completed_at": "2024-10-09T17:33:18.387586Z",
- "donation_id": "51e294d3-46af-443a-9aec-478394a9c9ec",
- "ends_at": "2024-10-09T17:33:18.387582Z",
- "id": "082d73ae-fb6d-472c-80a3-0c24cee62744",
- "inserted_at": "2024-10-09T17:33:18.387559Z",
- "matched_by": "Big Donor 1",
- "pledged_amount": {
- "currency": "USD",
- "value": "182.32"
}, - "started_at_amount": {
- "currency": "USD",
- "value": "182.32"
}, - "starts_at": "2024-10-09T17:33:18.387578Z",
- "total_amount_raised": {
- "currency": "USD",
- "value": "182.32"
}, - "updated_at": "2024-10-09T17:33:18.387574Z"
}
], - "donor_comment": "Keep up the great work!",
- "donor_name": "Test Name",
- "fundraising_event_id": "27ab8aed-0d6f-4ac5-9158-372e59505177",
- "id": "1a8808b5-aee3-4ce8-b028-9ef402b60598",
- "legacy_id": 51558945,
- "payment_status": "completed",
- "poll_id": "49159b71-042c-481b-b712-9674c7bf5c5e",
- "poll_option_id": "db8f5a67-8493-4b7f-ae6c-d723246b9550",
- "reward_claims": [
- {
- "id": "884e7354-443c-45e4-bac7-2d5bfefb2078",
- "quantity": 1,
- "reward_id": "d9ffb1fb-b44f-4657-b12e-cfa7c43026a5"
}
], - "reward_id": "2ccc0968-8e86-4430-893c-a33367e6a8d0",
- "sustained": false,
- "target_id": "0e5eda33-6ccc-4fce-89fc-a6911399dba2",
- "team_event_id": "4a40d89e-0d06-4e4d-865c-80f49e67aa9c"
}, - "id": "f0233466-4c1f-42bd-951a-86473f69fc5b",
- "inserted_at": "2024-11-13T20:04:12.507763Z",
- "metadata": "Q3VzdG9tIE1ldGFkYXRhIFN0cmluZw==",
- "updated_at": "2024-11-13T20:04:12.507779Z",
- "webhook_relay_id": "99ad8b70-64f0-406a-a824-0c7afe46ac52"
}
Returns a Webhook Relay Key by ID
Returns a Webhook Relay Key by its ID
Authorizations:
path Parameters
webhook_relay_id required | string Webhook Relay ID |
webhook_relay_key_id required | string Webhook Relay Key ID |
Responses
Response samples
- 200
- 401
- 403
- 404
- 422
{- "data": {
- "client_key": "6aae6f572e18c5caf307e192e4fe2a353a0a4527803101105e481e1a53582c2b",
- "donation": {
- "amount": {
- "currency": "USD",
- "value": "182.32"
}, - "campaign_id": "a3f0030f-4179-4b41-b5b7-899bccc7e606",
- "cause_id": "7f5e1e3f-bc44-40c8-a9cd-a9f65b0b71dc",
- "completed_at": "2024-11-13T20:04:12.308655Z",
- "donation_matches": [
- {
- "active": true,
- "amount": {
- "currency": "USD",
- "value": "182.32"
}, - "completed_at": "2024-10-09T17:33:18.387586Z",
- "donation_id": "51e294d3-46af-443a-9aec-478394a9c9ec",
- "ends_at": "2024-10-09T17:33:18.387582Z",
- "id": "082d73ae-fb6d-472c-80a3-0c24cee62744",
- "inserted_at": "2024-10-09T17:33:18.387559Z",
- "matched_by": "Big Donor 1",
- "pledged_amount": {
- "currency": "USD",
- "value": "182.32"
}, - "started_at_amount": {
- "currency": "USD",
- "value": "182.32"
}, - "starts_at": "2024-10-09T17:33:18.387578Z",
- "total_amount_raised": {
- "currency": "USD",
- "value": "182.32"
}, - "updated_at": "2024-10-09T17:33:18.387574Z"
}
], - "donor_comment": "Keep up the great work!",
- "donor_name": "Test Name",
- "fundraising_event_id": "27ab8aed-0d6f-4ac5-9158-372e59505177",
- "id": "1a8808b5-aee3-4ce8-b028-9ef402b60598",
- "legacy_id": 51558945,
- "payment_status": "completed",
- "poll_id": "49159b71-042c-481b-b712-9674c7bf5c5e",
- "poll_option_id": "db8f5a67-8493-4b7f-ae6c-d723246b9550",
- "reward_claims": [
- {
- "id": "884e7354-443c-45e4-bac7-2d5bfefb2078",
- "quantity": 1,
- "reward_id": "d9ffb1fb-b44f-4657-b12e-cfa7c43026a5"
}
], - "reward_id": "2ccc0968-8e86-4430-893c-a33367e6a8d0",
- "sustained": false,
- "target_id": "0e5eda33-6ccc-4fce-89fc-a6911399dba2",
- "team_event_id": "4a40d89e-0d06-4e4d-865c-80f49e67aa9c"
}, - "id": "f0233466-4c1f-42bd-951a-86473f69fc5b",
- "inserted_at": "2024-11-13T20:04:12.507763Z",
- "metadata": "Q3VzdG9tIE1ldGFkYXRhIFN0cmluZw==",
- "updated_at": "2024-11-13T20:04:12.507779Z",
- "webhook_relay_id": "99ad8b70-64f0-406a-a824-0c7afe46ac52"
}
}