You can look up the details for any individual endpoint that was added to an Amazon Pinpoint project. These details can include the destination address for your messages, the messaging channel, data about the user's device, data about the user's location, and any custom attributes that you record in your endpoints.
To look up an endpoint, you need the endpoint ID. If you don't know the ID, you can get the endpoint data by exporting instead. To export endpoints, see Export endpoints from Amazon Pinpoint to Amazon S3 buckets.
Examples
The following examples show you how to look up an individual endpoint by specifying its ID.
You can use Amazon Pinpoint by running commands with the AWS CLI.
Example Get endpoint command
To look up an endpoint, use the get-endpoint
command:
$
aws pinpoint get-endpoint \
>
--application-id
application-id
\>
--endpoint-id
endpoint-id
Where:
-
is the ID of the Amazon Pinpoint project that contains the endpoint.application-id
-
is the ID of the endpoint that you're looking up.endpoint-id
The response to this command is the JSON definition of the endpoint, as in the following example:
{
"EndpointResponse": {
"Address": "1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p7q8r9s0t1u2v3w4x5y6z7a8b9c0d1e2f",
"ApplicationId": "application-id",
"Attributes": {
"Interests": [
"Technology",
"Music",
"Travel"
]
},
"ChannelType": "APNS",
"CohortId": "63",
"CreationDate": "2018-05-01T17:31:01.046Z",
"Demographic": {
"AppVersion": "1.0",
"Make": "apple",
"Model": "iPhone",
"ModelVersion": "8",
"Platform": "ios",
"PlatformVersion": "11.3.1",
"Timezone": "America/Los_Angeles"
},
"EffectiveDate": "2018-05-07T19:03:29.963Z",
"EndpointStatus": "ACTIVE",
"Id": "example_endpoint",
"Location": {
"City": "Seattle",
"Country": "US",
"Latitude": 47.6,
"Longitude": -122.3,
"PostalCode": "98121"
},
"Metrics": {
"music_interest_level": 6.0,
"travel_interest_level": 4.0,
"technology_interest_level": 9.0
},
"OptOut": "ALL",
"RequestId": "7f546cac-6858-11e8-adcd-2b5a07aab338",
"User": {
"UserAttributes": {
"Gender": "Female",
"FirstName": "Wang",
"LastName": "Xiulan",
"Age": "39"
},
"UserId": "example_user"
}
}
}
Related information
For more information about the Endpoint resource in the Amazon Pinpoint API, see Endpoint in the Amazon Pinpoint API Reference.