POST
/
v1
/
open
/
subscribe
curl --request POST \
  --url https://app.thefaithapp.com/api/v1/open/subscribe \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <x-api-key>' \
  --data '{
  "fcm_token": "<string>"
}'
{
  "message": "Church subscribed to Example Church",
  "user": "<string>"
}

Subscribes a user to a church using their Firebase ID token and the client API key.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-API-Key
string
required

Your client API key from the dashboard (Settings page).

Body

application/json
FCM token for the user's device.

The body is of type object.

Response

200
application/json
Successfully subscribed user to church.

The response is of type object.