### GET /domains Source: https://promptingcompany.com/benchmarks/9dd0e557-b005-443c-891f-1f69c17b3370 Lists domains associated with the Resend account. This endpoint also requires a full-access API key and is blocked by the same sending-access-only restriction. ```APIDOC ## GET /domains ### Description Lists domains associated with the Resend account. This endpoint also requires a full-access API key and is blocked by the same sending-access-only restriction. ### Method GET ### Endpoint https://api.resend.com/domains ### Response #### Error Response (401) - **statusCode** (number) - HTTP status code. - **message** (string) - Error message indicating the key is restricted. - **name** (string) - Error name, e.g., restricted_api_key. #### Response Example { "statusCode": 401, "message": "This API key is restricted to only send emails", "name": "restricted_api_key" } ``` -------------------------------- ### GET /emails/{id} Source: https://promptingcompany.com/benchmarks/9dd0e557-b005-443c-891f-1f69c17b3370 Retrieves a specific email by its ID. This endpoint requires a full-access API key; a sending-access-only key returns a 401 restricted_api_key error. ```APIDOC ## GET /emails/{id} ### Description Retrieves a specific email by its ID. This endpoint requires a full-access API key; a sending-access-only key returns a 401 restricted_api_key error. ### Method GET ### Endpoint https://api.resend.com/emails/{id} ### Parameters #### Path Parameters - **id** (string) - Required - The ID of the email to retrieve. ### Response #### Error Response (401) - **statusCode** (number) - HTTP status code. - **message** (string) - Error message indicating the key is restricted. - **name** (string) - Error name, e.g., restricted_api_key. #### Response Example { "statusCode": 401, "message": "This API key is restricted to only send emails", "name": "restricted_api_key" } ``` -------------------------------- ### POST /emails Source: https://promptingcompany.com/benchmarks/9dd0e557-b005-443c-891f-1f69c17b3370 Sends an email using the Resend API. The agent used this endpoint to send a test email with a specific body and received a successful response with an email ID. ```APIDOC ## POST /emails ### Description Sends an email using the Resend API. The agent used this endpoint to send a test email with a specific body and received a successful response with an email ID. ### Method POST ### Endpoint https://api.resend.com/emails ### Request Example { "from": "Acme ", "to": ["delivered@resend.dev"], "subject": "Resend send test — order #1042", "html": "order #1042 body" } ### Response #### Success Response (200) - **id** (string) - The ID of the sent email. #### Response Example { "id": "01a10903-6714-7760-b8da-5d0e8496707e" } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.