{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":38633,"path":"platform-administration/create-oauth-api-script-cred-flow.md","title":"Create an OAuth API script","bundle":null,"doc_type":null,"release":"australia","body":"\n# Create an OAuth API script\n\nCreate and duplicate an OAuth API script for application registry.\n\n## Before you begin\n\nGenerate an SHA-1 thumbprint. For more information, see [Generate a SHA-1 thumbprint](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/generate-thumbprint.md).\n\nGenerate a sys\\_id when you configure a JWT provider. For more information, see [Configure a JWT provider](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/config-jwt-credential-flow.md).\n\nRole required: admin\n\n## Procedure\n\n1.  Navigate to **All** &gt; **System Definition** &gt; **Script Includes**.\n\n2.  Select and open **EmailCertificateOAuthTemplate**.\n\n3.  Duplicate the script by changing the name in the **Name** field, select **Insert and Stay** from the record menu.\n\n    **Note:** The name must begin with **OAuth** to create an OAuth script.\n\n    The script is copied and created with a different name.\n\n4.  In the copied script, enter the JWT provider sys\\_id and SHA-1 thumbprint.\n\n5.  Select **Update**.\n\n\n## What to do next\n\n[Register an OAuth provider](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/register-oauth-cred-flow.md).\n\n**Parent Topic:**[Configure client credential flow for SMTP OAuth2 using certificate-based authentication](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/config-credential-flow-certificate.md)\n\n"}}