Personal Access Tokens (PAT)
A personal access token (PAT) is a secure credential that allows your application, script, or other tools to communicate securely with the GitCode API to perform various operations such as creating projects, managing Issues, pulling and pushing code, etc. By using a PAT, you can access your GitCode account instead of a password while maintaining a higher level of security.
Personal access tokens (PAT) can be used for:
- API Access: PAT allows your application or tool to access the GitCode API to perform various operations.
- Permission Control: You can configure the permission scope of the PAT as needed to restrict access permissions.
- Replace Password: Use the PAT instead of a password to enhance the security of API access.
Creating Personal Access Tokens
-
Click on the avatar in the upper right corner of the homepage and select "Personal Settings."
-
In the left navigation bar, click on "Access Tokens" and then click "Create New Access Token" to start creating a new personal access token.
-
Assign appropriate permissions to the personal access token. You can choose different scopes such as projects, Issues, etc., as needed. You can also set an expiration time for the personal access token. Click the "Create New Access Token" button to generate a new personal access token.
Note: Please keep your personal access token safe, as it will only be visible once after successful creation.
In your application, script, or tool, use the generated PAT as an authentication credential to access the GitCode API. Keep your PAT safe and do not share or disclose it to maintain account security.