APNs Channel - Amazon Pinpoint

APNs Channel

A channel is a type of platform that you can deliver messages to. You can use the APNs channel to send push notification messages to the Apple Push Notification service (APNs). Before you can use Amazon Pinpoint to send notification messages to APNs, you must enable the APNs channel for an Amazon Pinpoint application.

The APNs Channel resource represents the status and authentication settings of the APNs channel for a specific application. You can use this resource to enable, retrieve information about, update, or disable (delete) the APNs channel for an application.

URI

/v1/apps/application-id/channels/apns

HTTP methods

GET

Operation ID: GetApnsChannel

Retrieves information about the status and settings of the APNs channel for an application.

Path parameters
NameTypeRequiredDescription
application-idStringTrue

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

Header parameters
NameTypeRequiredDescription
acceptStringFalse

Indicates which content types, expressed as MIME types, the client understands.

Responses
Status codeResponse modelDescription
200APNSChannelResponse

The request succeeded.

400MessageBody

The request contains a syntax error (BadRequestException).

403MessageBody

The request was denied because access to the specified resource is forbidden (ForbiddenException).

404MessageBody

The request failed because the specified resource was not found (NotFoundException).

405MessageBody

The request failed because the method is not allowed for the specified resource (MethodNotAllowedException).

413MessageBody

The request failed because the payload for the body of the request is too large (RequestEntityTooLargeException).

429MessageBody

The request failed because too many requests were sent during a certain amount of time (TooManyRequestsException).

500MessageBody

The request failed due to an unknown internal server error, exception, or failure (InternalServerErrorException).

PUT

Operation ID: UpdateApnsChannel

Enables the APNs channel for an application or updates the status and settings of the APNs channel for an application.

Path parameters
NameTypeRequiredDescription
application-idStringTrue

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

Header parameters
NameTypeRequiredDescription
acceptStringFalse

Indicates which content types, expressed as MIME types, the client understands.

Responses
Status codeResponse modelDescription
200APNSChannelResponse

The request succeeded.

400MessageBody

The request contains a syntax error (BadRequestException).

403MessageBody

The request was denied because access to the specified resource is forbidden (ForbiddenException).

404MessageBody

The request failed because the specified resource was not found (NotFoundException).

405MessageBody

The request failed because the method is not allowed for the specified resource (MethodNotAllowedException).

413MessageBody

The request failed because the payload for the body of the request is too large (RequestEntityTooLargeException).

429MessageBody

The request failed because too many requests were sent during a certain amount of time (TooManyRequestsException).

500MessageBody

The request failed due to an unknown internal server error, exception, or failure (InternalServerErrorException).

DELETE

Operation ID: DeleteApnsChannel

Disables the APNs channel for an application and deletes any existing settings for the channel.

Path parameters
NameTypeRequiredDescription
application-idStringTrue

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

Header parameters
NameTypeRequiredDescription
acceptStringFalse

Indicates which content types, expressed as MIME types, the client understands.

Responses
Status codeResponse modelDescription
200APNSChannelResponse

The request succeeded.

400MessageBody

The request contains a syntax error (BadRequestException).

403MessageBody

The request was denied because access to the specified resource is forbidden (ForbiddenException).

404MessageBody

The request failed because the specified resource was not found (NotFoundException).

405MessageBody

The request failed because the method is not allowed for the specified resource (MethodNotAllowedException).

413MessageBody

The request failed because the payload for the body of the request is too large (RequestEntityTooLargeException).

429MessageBody

The request failed because too many requests were sent during a certain amount of time (TooManyRequestsException).

500MessageBody

The request failed due to an unknown internal server error, exception, or failure (InternalServerErrorException).

OPTIONS

Retrieves information about the communication requirements and options that are available for the APNs Channel resource.

Path parameters
NameTypeRequiredDescription
application-idStringTrue

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

Responses
Status codeResponse modelDescription
200None

The request succeeded.

Schemas

Request bodies

{ "Certificate": "string", "PrivateKey": "string", "Enabled": boolean, "TokenKeyId": "string", "TeamId": "string", "TokenKey": "string", "BundleId": "string", "DefaultAuthenticationMethod": "string" }

Response bodies

{ "ApplicationId": "string", "IsArchived": boolean, "Version": integer, "CreationDate": "string", "LastModifiedDate": "string", "LastModifiedBy": "string", "Id": "string", "Enabled": boolean, "HasCredential": boolean, "Platform": "string", "HasTokenKey": boolean, "DefaultAuthenticationMethod": "string" }
{ "RequestID": "string", "Message": "string" }

Properties

APNSChannelRequest

Specifies the status and settings of the APNs (Apple Push Notification service) channel for an application.

PropertyTypeRequiredDescription
BundleId

string

False

The bundle identifier that's assigned to your iOS app. This identifier is used for APNs tokens.

Certificate

string

False

The APNs client certificate that you received from Apple, if you want Amazon Pinpoint to communicate with APNs by using an APNs certificate.

DefaultAuthenticationMethod

string

False

The default authentication method that you want Amazon Pinpoint to use when authenticating with APNs, key or certificate.

Enabled

boolean

False

Specifies whether to enable the APNs channel for the application.

PrivateKey

string

False

The private key for the APNs client certificate that you want Amazon Pinpoint to use to communicate with APNs.

TeamId

string

False

The identifier that's assigned to your Apple developer account team. This identifier is used for APNs tokens.

TokenKey

string

False

The authentication key to use for APNs tokens.

TokenKeyId

string

False

The key identifier that's assigned to your APNs signing key, if you want Amazon Pinpoint to communicate with APNs by using APNs tokens.

APNSChannelResponse

Provides information about the status and settings of the APNs (Apple Push Notification service) channel for an application.

PropertyTypeRequiredDescription
ApplicationId

string

False

The unique identifier for the application that the APNs channel applies to.

CreationDate

string

False

The date and time when the APNs channel was enabled.

DefaultAuthenticationMethod

string

False

The default authentication method that Amazon Pinpoint uses to authenticate with APNs for this channel, key or certificate.

Enabled

boolean

False

Specifies whether the APNs channel is enabled for the application.

HasCredential

boolean

False

(Not used) This property is retained only for backward compatibility.

HasTokenKey

boolean

False

Specifies whether the APNs channel is configured to communicate with APNs by using APNs tokens. To provide an authentication key for APNs tokens, set the TokenKey property of the channel.

Id

string

False

(Deprecated) An identifier for the APNs channel. This property is retained only for backward compatibility.

IsArchived

boolean

False

Specifies whether the APNs channel is archived.

LastModifiedBy

string

False

The user who last modified the APNs channel.

LastModifiedDate

string

False

The date and time when the APNs channel was last modified.

Platform

string

True

The type of messaging or notification platform for the channel. For the APNs channel, this value is APNS.

Version

integer

False

The current version of the APNs channel.

MessageBody

Provides information about an API request or response.

PropertyTypeRequiredDescription
Message

string

False

The message that's returned from the API.

RequestID

string

False

The unique identifier for the request or response.

See also

For more information about using this API in one of the language-specific AWS SDKs and references, see the following:

GetApnsChannel

UpdateApnsChannel

DeleteApnsChannel