---
schema_version: "1"
id: abde1ee32eb57cc0c0572a081e32bd02d81bca6f043613eea2ee6ff088306c6b
title: Send Events from AWS Back to Salesforce Using an API Destination
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/ev_relay_send_event_to_salesforce.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.ev_relay_send_event_to_salesforce.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: e82e524c8e0f4ee4900ff0e60c80da54d07360e1d49a783275e7e7d9908d2a61
description: An API destination is the target of a rule, and it enables you to route events to HTTP endpoints. Specifically, you can use an API destination to publish an event to Salesforce from EventBridge using REST API.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Send Events from AWS Back to Salesforce Using an API Destination

An API destination is the target of a rule, and it enables you to route events to HTTP endpoints. Specifically, you can use an API destination to publish an event to Salesforce from EventBridge using REST API.

- **[Create a Connected App in Salesforce for OAuth](https://help.salesforce.com/s/articleView?id=platform.ev_relay_create_connected_app.htm&release=264.0.0&type=5)**  
    To use OAuth to authorize the API call to Salesforce, set up a connected app in Salesforce. The connected app generates a consumer key and secret that you can store in the EventBridge connection in AWS.
- **[Create an API Destination and Connection in EventBridge](https://help.salesforce.com/s/articleView?id=platform.ev_relay_create_api_destination.htm&release=264.0.0&type=5)**  
    Create an API destination that uses a new connection. In this case, the API destination is a REST API call to Salesforce to publish a platform event back. The connection contains the authentication information for the API call. The connection accepts several authorization methods.
- **[Create an EventBridge Rule and Connect it to the API Destination](https://help.salesforce.com/s/articleView?id=platform.ev_relay_create_eb_rule.htm&release=264.0.0&type=5)**  
    The EventBridge rule routes events from the event bus to the API destination, which results in making a REST call to publish an event back to Salesforce.
- **[Verify the API Destination](https://help.salesforce.com/s/articleView?id=platform.ev_relay_verify_api_destination.htm&release=264.0.0&type=5)**  
    Publish a test event to the event bus that is associated with the rule you created in a previous step, and verify that your subscriber in Salesforce receives the event from Amazon EventBridge.