How to Find Facebook GraphQL doc_id for Ads Billing or Mutation APIs

How to Find Facebook GraphQL doc_id for Ads Billing or Mutation APIs

How to Find Facebook GraphQL doc_id for Ads Billing or Mutation APIs

🔍 What is a Facebook doc_id?

In Facebook’s internal GraphQL API system, a doc_id is a unique identifier that refers to specific actions such as adding payment methods, funding ad accounts, or verifying cards. Each Facebook Ads feature (like injecting a credit card) is backed by a mutation tied to a doc_id.

📋 Why is it Important?

  • Inject cards using BillingSaveCardCredentialStateMutation
  • Fund ads with BillingAddFundsStateMutation
  • Fetch RSA keys using PaymentsCometGetServerEncryptionKeyMutation

🧠 How to Find a Facebook doc_id (Step-by-Step)

  1. Go to: business.facebook.com
  2. Open DevTools: Press F12 → Network tab → filter by graphql
  3. Perform Action: Try adding a payment card or funding an ad account
  4. Check Request: Click the GraphQL request → look under headers or payload
  5. Locate: You’ll see a line like this:
    "doc_id":"28965167609798179"

📌 Most Common Facebook doc_ids

Purposedoc_id
Add Card28965167609798179
Get RSA Key9350229961692383
Verify Card9100428603382438
Fund Account8656399561129626
Load Saved Methods9475597022567814

🚀 Boost Your Automation

If you're building a card adder, automation script, or bot using Facebook GraphQL, you need to insert the right doc_id with the correct headers, fb_dtsg, actor_id, and platform_trust_token.

👉 Want Ready-Made Scripts?

We offer tested PHP and JS scripts that automatically inject cards, extract platform_trust_token, and use GraphQL mutation endpoints via token_proxy.php.

Visit: trickadsagencyltd.com

Tags:
#facebook api # facebook billing # graphql doc_id # mutation id # facebook automation # ads funding # platform trust token
Do you accept cookies?

We use cookies to enhance your browsing experience. By using this site, you consent to our cookie policy.

More