Account settings
These endpoints allow you to retrieve, update your Account settings.
Retrieve account pixels
- Name
facebook_pixels
- Type
- [Pixel!]!
- Description
The account facebook_pixels.
type Pixel { label: String! value: String! }
- Name
snapchat_pixels
- Type
- [Pixel!]!
- Description
The account snapchat_pixels.
type Pixel { label: String! value: String! }
- Name
tiktok_pixels
- Type
- [Pixel!]!
- Description
The account tiktok_pixels.
type Pixel { label: String! value: String! }
Request
POST
https://services.lightfunnels.com/api/v2query AccountQuery{
account {
facebook_pixels {
label
value
}
snapchat_pixels {
label
value
}
tiktok_pixels {
label
value
}
}
}
Response
{
"data": {
"account": {
"facebook_pixels": [
{
"label": "My fb pixel",
"value": "Some pixel value"
}
],
...
}
}
}
Update account pixels
Fields
- Name
facebook_pixels
- Type
- [InputPixel]
- Description
The account facebook pixels.
input InputPixel { label: String! value: String! }
- Name
snapchat_pixels
- Type
- [InputPixel]
- Description
The account snapchat pixels.
input InputPixel { label: String! value: String! }
- Name
tiktok_pixels
- Type
- [InputPixel]
- Description
The account tiktok pixels.
input InputPixel { label: String! value: String! }
Request
POST
https://services.lightfunnels.com/api/v2mutation InputUpdateAccount($node: InputUpdateAccount!){
updateAccount(node: $node) {
id
facebook_pixels {
label
value
}
snapchat_pixels {
label
value
}
tiktok_pixels {
label
value
}
...
}
}
Variables example:
{
facebook_pixels: [
{
label: 'My fb px label',
value: 'the actual pixel'
}
],
snapchat_pixels: [
{
label: 'My sn px label',
value: 'the actual pixel'
}
],
tiktok_pixels: [
{
label: 'My tk px label',
value: 'the actual pixel'
}
]
}
Response
{
"data": {
"account": {
"facebook_pixels": [
{
"label": "My fb pixel",
"value": "Some pixel value"
}
],
...
}
}
}
Create Facebook Conversion API Integration
Arguments
- Name
node
- Type
- FacebookConversionApi!
- Description
Account facebook conversion API integration.
input FacebookConversionApi { token: String! label: String! pixels: [String!]! }
Request
POST
https://services.lightfunnels.com/api/v2mutation CreateConversionApi($node: FacebookConversionApi!){
createConversionApiFacebookIntegration(node: $node) {
id
...
}
}
Variables example:
{
"node": {
"label": "My capi integration",
"token": "your facebook token",
"pixels": ["pixel_1", "pixel_2"]
}
}
Response
{
"data": {
"account": {
"node": [
{
"id": "Your account ID"
}
],
...
}
}
}
Retrieve Integrations
- Name
integrations
- Type
- [Integration!]!
- Description
Account integrations.
type Integration implements Node { id: ID! platform: String! label: String! details: IntegrationDetails } scalar IntegrationDetails
Request
POST
https://services.lightfunnels.com/api/v2query AccountQuery{
account {
integrations {
id
label
platform
details
}
}
}
Response
{
"data": {
"account": {
"integrations": [
{
"id": "integration id",
"label": "testcapi",
"platform": "facebook"
"details": {
"pixels": ["some pixel id"]
},
}
]
...
}
}
}
Remove Integration
Arguments
- Name
id
- Type
- ID!
- Description
Account integration id.
Request
POST
https://services.lightfunnels.com/api/v2mutation removeIntegrationMutation($id: ID!){
removeIntegration(id: $id){
id
integrations{
id
}
}
}
Variables example:
{
"id": "integration id"
}
Response
{
"data": {
"account": {
"id": "Your account ID",
"integrations": [
{
"id": "integration id 1"
},
{
"id": "integration id 2"
}
]
...
}
}
}