401 Array ( [0] => HTTP/1.1 401 Unauthorized [1] => Date: Tue, 20 Oct 2026 03:44:42 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: Tue, 20 Oct 2026 03:44:43 GMT [2] => Content-Type: application/json [3] => Content-Length: 210 [4] => Connection: keep-alive [5] => Server: nginx [6] => x-amzn-requestid: ec7ab4b4-2d80-47aa-83cb-38a6a3b7dde9 [7] => x-amzn-remapped-x-amzn-requestid: 9395039c-5d94-446f-9adf-6ad58e14c959 [8] => x-amzn-remapped-content-length: 210 [9] => x-sendgrid-pod-id: 0 [10] => x-amz-apigw-id: FhiC3EtroAMEcqg= [11] => x-amzn-trace-id: Root=1-6ad6e3ab-1b8d8b986138be0d27a8b67e;Parent=5cc10e4e8e4e8dfc;Sampled=0;Lineage=1:5cb8ea5c:0 [12] => x-amzn-remapped-date: Tue, 20 Oct 2026 03:44:43 GMT [13] => x-sendgrid-podrouter-region: us-east-1 [14] => x-envoy-upstream-service-time: 574 [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: 17 [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"}]}