401 Array ( [0] => HTTP/1.1 401 Unauthorized [1] => Date: Tue, 04 Aug 2026 12:11:23 GMT [2] => Content-Type: application/json [3] => Content-Length: 76 [4] => Connection: keep-alive [5] => Server: nginx [6] => Access-Control-Allow-Origin: https://sendgrid.api-docs.io [7] => Access-Control-Allow-Methods: POST [8] => Access-Control-Allow-Headers: Authorization, Content-Type, On-behalf-of, x-sg-elas-acl [9] => Access-Control-Max-Age: 600 [10] => X-No-CORS-Reason: https://sendgrid.com/docs/Classroom/Basics/API/cors.html [11] => Strict-Transport-Security: max-age=31536000; includeSubDomains [12] => Content-Security-Policy: frame-ancestors 'none' [13] => Cache-Control: no-cache [14] => X-Content-Type-Options: no-sniff [15] => Referrer-Policy: strict-origin-when-cross-origin [16] => [17] => ) {"errors":[{"message":"Maximum credits exceeded","field":null,"help":null}]} 403 Array ( [0] => HTTP/1.1 403 Forbidden [1] => Date: Tue, 04 Aug 2026 12:11:23 GMT [2] => Content-Type: application/json [3] => Content-Length: 210 [4] => Connection: keep-alive [5] => Server: nginx [6] => x-amzn-requestid: 67b88688-3b02-45c5-bfcd-2ca6ee3fa716 [7] => x-amzn-remapped-x-amzn-requestid: 0b52e35e-c732-448b-acc0-75883246aa0d [8] => x-amzn-remapped-content-length: 210 [9] => x-sendgrid-pod-id: 0 [10] => x-amz-apigw-id: Bk6E4FAcIAMEmpg= [11] => x-amzn-trace-id: Root=1-6a71d6eb-394816107f99e64862b30cbe;Parent=36ad86d4232122f9;Sampled=0;Lineage=1:5cb8ea5c:0 [12] => x-amzn-remapped-date: Tue, 04 Aug 2026 12:11:23 GMT [13] => x-sendgrid-podrouter-region: us-east-1 [14] => x-envoy-upstream-service-time: 486 [15] => strict-transport-security: max-age=31536000; includeSubDomains [16] => content-security-policy: frame-ancestors 'none' [17] => cache-control: no-store [18] => referrer-policy: strict-origin-when-cross-origin [19] => x-content-type-options: nosniff [20] => x-ratelimit-remaining: 599 [21] => x-ratelimit-reset: 37 [22] => x-ratelimit-limit: 600 [23] => [24] => ) {"errors":[{"message":"access forbidden. please ensure you have the correct scopes defined. see https://docs.sendgrid.com/api-reference/how-to-use-the-sendgrid-v3-api/authorization#api-key-permissions-list"}]}