Skip to content

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 remarks parameter 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:

  1. Your device gets authenticated with the ApiSorcery service
  2. The token is validated and associated with your device
  3. Your device is authorized to generate APIs from configured services
  4. 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:

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.