By default, endpoints are private and require a bearer token to access. You can remove the authentication requirement for endpoints using the Authorized=False argument:
auth.py
Copy
Ask AI
from beam import endpoint@endpoint(authorized=False) # Disable authenticationdef create_public_endpoint(): print("This API can be invoked without an auth token") return {"success": "true"}
You can find your Stub ID on the deployment detail page in the web dashboard.
You can view your the API URL by clicking the Call API button on the deployment detail page in the web dashboard.A full request to a public endpoint might look something like this: