+ Start a Discussion
Liliana Torres 4Liliana Torres 4 

@Future ( callout =true ) does this method count towards API call ?

@Future ( callout =true  ) does this method count towards API call ?   
Krishna.AvvaKrishna.Avva
Hi Liliana,

Yes. It counts towards the async callouts.

Regards,
Krishna Avva
Krishna.AvvaKrishna.Avva
In addition you can also Debug the number of callouts made and the remaining callouts using the Limits class. Additional information:https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_limits.htm
Raj VakatiRaj Vakati
Has limits 
  • Asynchronous calls, such as @future or executeBatch, called in a startTest, stopTest block, do not count against your limits for the number of queued jobs.The maximum number of future method invocations per a 24-hour period is 250,000 or the number of user licenses in your organization multiplied by 200, whichever is greater. This limit is for your entire org and is shared with all asynchronous Apex: Batch Apex, Queueable Apex, scheduled Apex, and future methods.
 Use the Limits resource to list limits information for your org.

https://developer.salesforce.com/docs/atlas.en-us.216.0.api_rest.meta/api_rest/dome_limits.htm