Example: Servers in private VPC consuming iFood APIs to expose their own services.
Tokens cannot exceed 8,000 characters. Ensure your integration provides adequate storage for these tokens.
Get credentials and tokens
Find your credentials
Open the Developer Portal
Go to My Apps > Application credentialsYou will see:
_clientId_: unique identifier of the application
_clientSecret_: key to obtain access tokens. Store securely and never expose.
Request the access tokenUse the clientId and clientSecret from your application to request an access token through the Authentication API.
Use the received tokenThe API returns the access token needed to consume iFood APIs.
Centralized applications do not receive refresh tokens. Check the FAQ for details.
Access the resourcesInclude the token in requests to iFood APIs using Bearer-type HTTP authentication.
API Reference
POST /oauth/token
DescriptionRequests a new access token to access API resources. By default, the token expires in 6 hours. For centralized applications, use the grant type client_credentials.cURL example