Skip to content

Debug Access Token

Updated: Jun 4, 2025

The /debug_token endpoint returns metadata about a given access token. This includes data such as the user for which the token was issued, whether the token is still valid, when it expires, and what permissions the app has for the given user.

To access this endpoint, it is required to provide a user access token from a Threads tester, and this access token must be associated with the same app that is linked to the input_token being inspected.

Retrieve an Access Token's Data

Example Request

curl -i -X GET \  
  "https://graph.threads.net/v1.0/debug_token?access_token=<THREADS_TESTER_ACCESS_TOKEN>&input_token=<ACCESS_TOKEN_TO_BE_INSPECTED>"

Parameters

NameDescription
access_token stringRequired. Threads Graph API user access token of a Threads tester.
input_token stringRequired. The access token to be inspected.

Note: The access_token and input_token can be associated with different users but must be associated with the same app.

Example Response

{  
  "data": {  
    "type": "USER",  
    "application": "Threads API Test App",  
    "data_access_expires_at": 1754846089,  
    "expires_at": 1752254132,  
    "is_valid": true,  
    "issued_at": 1747070132,  
    "scopes": [  
      "threads_basic",  
      "threads_content_publish",  
      "threads_manage_replies",  
      "threads_manage_insights",  
      "threads_read_replies",  
      "threads_manage_mentions",  
      "threads_keyword_search",  
      "threads_location_tagging"  
    ],  
    "user_id": "1234567890123456"  
  }  
}

Fields

NameDescription
data objectData wrapper around the result.
type stringWhether the access token is an app access token or user access token.
application stringName of the application this access token is for.
data_access_expires_at UnixtimeTimestamp when the app's access to user data expires.
expires_at UnixtimeTimestamp when this access token expires.
is_valid BooleanWhether the access token is still valid or not.
issued_at UnixtimeTimestamp when this access token was issued.
scopes string[]List of permissions that the user has granted for the app in this access token.
user_id stringThe ID of the user this access token is for.

Unofficial mirror for reference/search purposes. All content originates from developers.facebook.com — see the source link at the top of each page. Machine-readable indexes: llms.txt · llms-full.txt · About