Generate an access token to get access to authorized fields.

Advertisement
Pro Plan Required

You'll need a Pro Plan to Access Authorized Fields

This is a Pro feature so you'll need to grab a Pro-level plan to use it. You'll also get thousands more icons, access to services, and support! Already got a plan? Sign in!

An access token is required to access authorized fields on the schema. The /token endpoint is used to resolve an API Token into an access token. An access token can be used for any number of requests, until it expires.

  1. Grab your API Token from your account page.
  2. Suppose your API Token is: WHOSGOTS-684D-4B64-B0D2-THEBEEFBEEFS. You would use your API Token to request a fresh access token like this:
curl -H "Authorization: Bearer WHOSGOTS-684D-4B64-B0D2-THEBEEFBEEFS" \-X POST \https://api.fontawesome.com/token
{
  "access_token":"123.abc.456def"
  "expires_in":3600,
  "scopes":["public","kits_read"],
  "token_type":"Bearer"
}
  • access_token: the value of the access token to use in the Authorization header of subsequent query requests
  • expires_in: number of seconds until this access token expires
  • scopes: the list of authorization scopes granted by this access token
  • token_type: token type which would appear before the access token in the Authorization header, followed by a space, like this:
curl -H "Authorization: Bearer 123.abc.456def" ...
Advertisement

You're viewing the Version 6 Beta

It's all the awesome of 5, but now more six-y! Version 6 brings over 13,000 icons across 5 styles – including the new Thin style! – and includes more and faster services.

Get the Deets on Version 6

Head Back to Our Current Version 5 Release

Need a Hand?

If you’re stuck or have a question, check our Troubleshooting docs, all of the Font Awesome threads on Stack Overflow, or contact our community on GitHub.

Or get Real Human Support™ with a Pro Subscription!