You can access the SonicJs GraphQL API at: http://localhost:3018/graphql
You should see the graphQL UI:
![](https://sonicjscom.s3.us-west-1.amazonaws.com/sonicjs graphql api.png)
Clicking on "RootQueryType" will expand the list of queries:
![](https://sonicjscom.s3.us-west-1.amazonaws.com/sonicjs graphql queries.png)
Here is an example of getting all site content of type "page":
{
contents(sessionID: "Fsjf-npf77LG8Z1bGuD5hei5dyZTIAIq" contentTypeId:"page") {
id
contentTypeId
data
createdByUserId
createdOn
lastUpdatedByUserId
updatedOn
}
}
![](https://sonicjscom.s3.us-west-1.amazonaws.com/sonicjs graphql get content by type.png)