# How to get Subscriptions by email

**URL:** <https://devcommunity.firmhouse.com/t/how-to-get-subscriptions-by-email/26>\
**Category:** Integration and Automation\
**Created:** [March 24, 2023, 6:27am UTC](https://devcommunity.firmhouse.com/t/how-to-get-subscriptions-by-email/26 "2023-03-24T06:27:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeroen](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@jeroen](https://devcommunity.firmhouse.com/u/jeroen)\
**Post date:** [March 24, 2023, 6:27am UTC](https://devcommunity.firmhouse.com/t/how-to-get-subscriptions-by-email/26/1 "2023-03-24T06:27:06Z")

</div>

Set the `X-PROJECT-ACCESS-TOKEN` in the headers for your query.

POST the following query to the Firmhouse API to get a list of subscriptions with this email address.

```auto
query Subscriptions {
	subscriptions(email: "email@example.com") {
		pageInfo {
			startCursor
			endCursor
			hasNextPage
			hasPreviousPage
		}
		totalCount
		edges {
			cursor
			node {
				id
				token
				email
				createdAt
				stoppedAt
			}
		}
	}
}

```

More information on this query and input parameters:  
[https://developer.firmhouse.com/graphql/objects/Query#subscriptions](https://developer.firmhouse.com/graphql/objects/Query#subscriptions)
