'Invalid file public id {{file_id}}' Error when Using the /send endpoint

If you're attempting to send data using the /send endpoint in Nylas and encounter the error message Invalid file public id {{file_id}}, it's likely due to one of the following reasons:

  1. The attachment belongs to a different account: The attachments you're trying to send may be linked to a different Nylas account than the one you're currently using.

  2. The provided file_id no longer exists: The file_id you're referring to in your request may have been deleted or does not exist anymore.

To troubleshoot this error, follow the steps below:

 

Step 1: Verify the Existence of file_id

First, confirm whether the file_id you're attempting to use still exists. You can do this using the /GET files endpoint.

The /GET files endpoint is designed to retrieve information about files stored in Nylas. By inputting your file_id into this endpoint, you can check if the file_id is still valid.

Refer to our GET files endpoint documentation for a detailed guide on how to use this feature.

 

Step 2: Ensure the Correct Account Link

Next, verify that the file_id you're using is linked to the account you're currently operating under. If your file_id is tied to a different account, you won't be able to send it using the /send endpoint.

To check if the file_id is linked to the right account, you'll need to examine the account information tied to the file. This can also be done using the /GET files endpoint.

 

Workaround

This error can usually be resolved by reuploading the file and ensuring the correct account has access to it.

 

 

By following these steps, you should be able to resolve the Invalid file public id {{file_id}} error. If the problem persists, don't hesitate to reach out to our support team for further assistance.

Updated

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.