Skip to main content
POST
/
v1
/
open
/
subscribe
Subscribe to Church
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.

fcm_token
string
required

User's FCM device token.

Response

Successfully subscribed user to church.

message
string
Example:

"Church subscribed to Example Church"

user
string

Firebase UID of the user

I