--- title: "Generating an API Token" slug: "generating-an-api-token" updated: 2024-10-03T13:39:38Z published: 2024-10-03T13:39:38Z canonical: "pccdocs.bluemeteor.com/generating-an-api-token" --- > ## Documentation Index > Fetch the complete documentation index at: https://pccdocs.bluemeteor.com/llms.txt > Use this file to discover all available pages before exploring further. # Generating an API Token You can generate an API token to be used for accessing the API. A token needs to be generated the first time you access this screen. Once the token is generated, you can then decide to keep it or set an expiry date for the token as needed. **To generate a token**: 1. Click **Generate Token** and the following is displayed. ![Graphical user interface, text, application Description automatically generated](https://cdn.document360.io/a899ba09-fd60-4d47-8b32-aabf7b60a39a/Images/Documentation/generating-an-api-token-image-ug84pibq.jpg?sv=2026-02-06&spr=https&st=2026-12-04T19%3A44%3A26Z&se=2026-12-04T20%3A44%3A26Z&sr=b&sp=r&sig=0LrWoY3aYmreZDFTvut0kKgzdwr6VQkSh2HG28w64Sc%3D) You can set the number of days after which the token should expire or choose to keep the token active without any expiry. To set the expiration , type the number of days after which the token should expire and then click **Set expiration days**. In this case, the token will not be valid after it expires. If you do not want the token to expire, click **Does not expire** and the token will remain active. Also, if you set the value as 0, the token will have no expiration date. Once the selection is made, the following message is displayed. ![Graphical user interface, application Description automatically generated](https://cdn.document360.io/a899ba09-fd60-4d47-8b32-aabf7b60a39a/Images/Documentation/generating-an-api-token-image-xhkm3oe6.jpg?sv=2026-02-06&spr=https&st=2026-12-04T19%3A44%3A26Z&se=2026-12-04T20%3A44%3A26Z&sr=b&sp=r&sig=Md7bRrYqd4QDxLe7CCrNENnk%2F3n5dtHZrQDnBKJmeT8%3D) Click **Yes** to proceed and the new token is generated. If **No** is selected, the existing token will remain as is. The token is generated as shown below. ![](https://cdn.document360.io/a899ba09-fd60-4d47-8b32-aabf7b60a39a/Images/Documentation/image(20).png?sv=2026-02-06&spr=https&st=2026-12-04T19%3A44%3A26Z&se=2026-12-04T20%3A44%3A26Z&sr=b&sp=r&sig=D3WspmE1gvWMw4Cmk4dnxny0P506zPn%2B4yJVyQOyDbs%3D) Once the token expires, a new token will not be automatically generated (the expiry date will still show the old date), and the API import will fail with a **403** error. An error message that ‘Security token has expired’ is displayed while using API to process the import. You need to generate a new token from the API page to run imports. You can also copy the token to the clipboard by clicking the **Copy to Clipboard**![](https://cdn.document360.io/a899ba09-fd60-4d47-8b32-aabf7b60a39a/Images/Documentation/generating-an-api-token-image-vwfvzakx.png?sv=2026-02-06&spr=https&st=2026-12-04T19%3A44%3A26Z&se=2026-12-04T20%3A44%3A26Z&sr=b&sp=r&sig=4YhtI455ZcMMFqs%2B3sWoN1CLeSvqIE9KZ%2B4swqXa364%3D)icon which can be pasted to the required parameter in the API settings. You can also delete the token if not required by clicking the **Delete Token**![](https://cdn.document360.io/a899ba09-fd60-4d47-8b32-aabf7b60a39a/Images/Documentation/generating-an-api-token-image-z75aequf.png?sv=2026-02-06&spr=https&st=2026-12-04T19%3A44%3A26Z&se=2026-12-04T20%3A44%3A26Z&sr=b&sp=r&sig=jtHlWY%2FffO2ApUdJKYXTFn8rue6nuuuNC0cjVffDCDs%3D)icon.