401 Array ( [0] => HTTP/1.1 401 Unauthorized [1] => Date: Sun, 04 Oct 2026 12:08:07 GMT [2] => Content-Type: application/json [3] => Content-Length: 76 [4] => Connection: keep-alive [5] => Access-Control-Allow-Headers: Authorization, Content-Type, On-behalf-of, x-sg-elas-acl [6] => Access-Control-Allow-Methods: POST [7] => Access-Control-Allow-Origin: https://sendgrid.api-docs.io [8] => Access-Control-Max-Age: 600 [9] => Cache-Control: no-cache [10] => Content-Security-Policy: frame-ancestors 'none' [11] => Referrer-Policy: strict-origin-when-cross-origin [12] => Strict-Transport-Security: max-age=31536000; includeSubDomains [13] => X-Content-Type-Options: nosniff [14] => X-No-Cors-Reason: https://sendgrid.com/docs/Classroom/Basics/API/cors.html [15] => [16] => ) {"errors":[{"message":"Maximum credits exceeded","field":null,"help":null}]} 403 Array ( [0] => HTTP/1.1 403 Forbidden [1] => Date: Sun, 04 Oct 2026 12:08:08 GMT [2] => Content-Type: application/json [3] => Content-Length: 210 [4] => Connection: keep-alive [5] => Server: nginx [6] => x-amzn-requestid: 0f8bcdac-f9f2-44fb-8b1a-99fa4a325241 [7] => x-amzn-remapped-x-amzn-requestid: 0ea6a774-d471-4f45-9e41-77de555aa94f [8] => x-amzn-remapped-content-length: 210 [9] => x-sendgrid-pod-id: 0 [10] => x-amz-apigw-id: Et8yTG15IAMERKw= [11] => x-amzn-trace-id: Root=1-6ac241a8-51705524217b2d847d874961;Parent=55a7db8fe869ff61;Sampled=0;Lineage=1:5cb8ea5c:0 [12] => x-amzn-remapped-date: Sun, 04 Oct 2026 12:08:08 GMT [13] => x-sendgrid-podrouter-region: us-east-1 [14] => x-envoy-upstream-service-time: 436 [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: 53 [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"}]}