Device Registration
Before generating APIs, you need to register your current device with a valid token to authenticate and enable API generation.
Registration Command
Global command:
shell
autoapi register -t <your-token> -r <your-remarks>Local command:
shell
npx autoapi register -t <your-token> -r <your-remarks>Replace <your-token> with your actual token configured in the console and <your-remarks> with your username or identifier (e.g., "john_doe", "alice_smith", etc.).
What happens during registration?
When you run the registration command:
- Your device gets authenticated with the AutoAPI service
- The token is validated and associated with your device
- Your device is authorized to generate APIs from configured services
- Registration credentials are stored locally for future API generation
Next Steps
After successful device registration, you can:
- Configure your project with the
.autoapirc.jsonfile - Set up services you want to generate APIs from
- Generate APIs using the
autoapi generatecommand
Troubleshooting
If you encounter issues during registration:
- Ensure your token is valid and not expired
- Check your internet connection
- Verify you have the necessary permissions to write to the local configuration directory
For additional help, please refer to our support documentation or contact support.