System.LimitException: Too many callouts: 1 Exception in Salesforce Batch Apex
If you are using batch class, then make sure to implement "Database.AllowsCallouts".Sample Code:global class BatchClass implements Database.Batchable<sObject>, Database.AllowsCallouts