401 Array ( [0] => HTTP/1.1 401 Unauthorized [1] => Server: nginx [2] => Date: Thu, 11 Jun 2026 22:11:50 GMT [3] => Content-Type: application/json [4] => Content-Length: 76 [5] => Connection: keep-alive [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] => Server: nginx [2] => Date: Thu, 11 Jun 2026 22:11:51 GMT [3] => Content-Type: application/json [4] => Content-Length: 210 [5] => Connection: keep-alive [6] => x-amzn-requestid: 69e861e5-395b-4482-a622-5eb845025c4e [7] => x-amzn-remapped-x-amzn-requestid: b3a1d2ed-8946-4df8-bb27-f324abe202ca [8] => x-amzn-remapped-content-length: 210 [9] => x-sendgrid-pod-id: 0 [10] => x-amz-apigw-id: e0TaOF7jIAMEFzw= [11] => x-amzn-trace-id: Root=1-6a2b32a7-7ed701c76d668fcf075b8154;Parent=2ba5c0189c30e7b4;Sampled=0;Lineage=1:5cb8ea5c:0 [12] => x-amzn-remapped-date: Thu, 11 Jun 2026 22:11:51 GMT [13] => x-sendgrid-podrouter-region: us-east-1 [14] => x-envoy-upstream-service-time: 450 [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: 9 [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"}]}