The "Access restricted to API-only users" error message typically indicates that the operation you're attempting to perform requires API access, but you're currently logged in with a user account that doesn't have the necessary permissions.
To resolve this issue, you can try the following steps:
Check Permissions: Ensure that the user account you're using has the appropriate permissions to access the API. Depending on the service or platform you're working with, this may involve adjusting settings or permissions within the user account settings.
Use API Credentials: If you're accessing an API, make sure you're using the correct API credentials (such as an API key or access token) in your request. These credentials are often required to authenticate and authorize access to the API.
Review API Documentation: Consult the documentation or developer resources for the API you're trying to access. Look for information about authentication and authorization requirements, as well as any specific instructions or limitations for accessing the API.
Contact Support: If you're still unable to resolve the issue, consider reaching out to the support team or developer community associated with the API or platform you're working with. They may be able to provide assistance or guidance to help you troubleshoot the problem.
Verify Endpoint: Double-check the endpoint URL and ensure that you're making requests to the correct API endpoint. Using an incorrect or outdated endpoint may result in authentication errors.