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
apisorcery register -t <your-token> -r <your-remarks>Local command:
shell
npx @apisorcery/cli register -t <your-token> -r <your-remarks>Replace <your-token> with your actual token configured in the console and <your-remarks> with a unique device identifier.
Important
- The
remarksparameter is required - Each device must have a unique remarks value under the same user account
- The remarks help you identify and manage different devices in the console
- One device can only be bound to one user and cannot be registered repeatedly
What happens during registration?
When you run the registration command:
- Your device gets authenticated with the ApiSorcery service
- The token is validated and associated with your device
- Your device is authorized to generate APIs from configured services
- The device registration is recorded on the server for authentication
Next Steps
After successful device registration, you're ready to start generating APIs! You can:
- Run
apisorcery generateto generate API clients from your configured services - Learn more about configuration to customize your setup
- Explore examples to see ApiSorcery in action
Troubleshooting
If you encounter issues during registration:
- Ensure your token is valid and not expired
- Check your internet connection
For additional help, please refer to our support documentation or contact support.