User Authentication
Prerequisites
- Log in to your Intern account at: https://sso.openxlab.org.cn/login. If you are not registered, it is recommended to sign up using your phone number.
Preparing the Authentication Request
All API requests require the inclusion of the API Token in the HTTP Header:
Authorization: Bearer YOUR_API_TOKEN
Please do not expose your API Token in the browser or in client-side code. Requests in a production environment should be made from the backend, ensuring that the API Token is retrieved securely from environment variables or other secure key management services. For your data security, all API Tokens are valid for 6 months. Please update your API Tokens before they expire.
Obtaining API Tokens
Intern API uses API Tokens for user identity authentication. You can generate an API Token by visiting the API Console.
Please note that the full API Token will only be shown when it is created for the first time. Make sure to copy it and keep it safe.