Make an API call

You can use your Access Token to make your first call to the REST API. Here's a little sample code that you can run in your terminal to make a call and list all the users in your developer workspace (which probably won't return any users at this stage):

# Copy the cURL request below into your Terminal.
# Replace **<INSERT_ACCESS_TOKEN_HERE>** with your Access Token from Step 3.
# Run the query to see a response with all your users listed.

$ curl \
-H 'Authorization:Bearer <INSERT_ACCESS_TOKEN_HERE>' \
-H 'Accept: application/json'

Find details on how to find your Access Token here.

What’s Next

Take a look at our next guide whereby you'll build an app in the Messenger within 30 minutes, or explore other API calls you can make with our REST API Reference.

Did this page help you?