> ## Documentation Index
> Fetch the complete documentation index at: https://docs.thefaithapp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Subscribe to Church

Subscribes the authenticated TheFaithApp member to the church represented by the API key and stores the device FCM token for push notifications.

## Example request

```bash theme={null}
curl -X POST https://api.thefaithapp.com/v1/subscribe \
  -H "X-API-Key: your-client-api-key" \
  -H "Authorization: Bearer member-bearer-token" \
  -H "Content-Type: application/json" \
  -d '{"fcm_token":"user-device-fcm-token"}'
```

## Request inputs

<ParamField header="X-API-Key" type="string" required>
  Your client API key from the dashboard (Settings page).
</ParamField>

<ParamField header="Authorization" type="string" required>
  The member bearer token returned by `POST /v1/auth/token`.
</ParamField>

<ParamField body="fcm_token" type="string" required>
  User's FCM device token.
</ParamField>

## Response fields

<ResponseField name="message" type="string" required>
  Confirms the church the member has just been subscribed to.
</ResponseField>

<ResponseField name="user" type="string" required>
  The member identifier associated with the church subscription.
</ResponseField>

## Example response

```json theme={null}
{
  "message": "Church subscribed to Example Church",
  "user": "member-user-123"
}
```
