Docs
Skip to content
post

Create APNS provider

Endpoint

posthttps://<REGION>.cloud.appwrite.io/v1/messaging/providers/apns

Description

Required scopes

providers.write

Authentication

Initialize the Appwrite client with setProject() and a server API key (setKey()). For direct REST calls, send X-Appwrite-Project and X-Appwrite-Key.

Parameters

string
Required
string
Required
string
string
string
string
boolean
boolean
Status
Content type
201
application/json

Provider

Name
Type
Description
string
string
string
string
string
boolean
string
object
object
Swift
import Appwrite
let client = Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<YOUR_PROJECT_ID>") // Your project ID
.setKey("<YOUR_API_KEY>") // Your secret API key
let messaging = Messaging(client)
let provider = try await messaging.createApnsProvider(
providerId: "<PROVIDER_ID>",
name: "<NAME>",
authKey: "<AUTH_KEY>", // optional
authKeyId: "<AUTH_KEY_ID>", // optional
teamId: "<TEAM_ID>", // optional
bundleId: "<BUNDLE_ID>", // optional
sandbox: false, // optional
enabled: false // optional
)