Is there any documentation on how to generate an A...
# prefect-community
p
Is there any documentation on how to generate an API key for a self hosted graphql server?
I'm seeing this graphql:
Copy code
mutation {
  create_api_key(input: { user_id: <user_id>, name: "my-api-key" }) {
    key
  }
}
but I'm not sure where to get the user_id from (on a self hosted machine).
trying to connect to the graphql server
prefect agent local start --api IP_ADDRESS
triggers:
Copy code
...
line 153, in _get_auth_tenant
    raise ValueError("You have not set an API key for authentication.")
ValueError: You have not set an API key for authentication.
z
There are no API keys in the open source Prefect Server — there’s no authentication built in.
Have you set
prefect backend server
on your agent’s machine?
p
oops, it appears that got set incorrectly. retried and receiving:
Copy code
[2022-10-04 18:40:12,679] INFO - agent | Registering agent...
and hang. No agents appear to be popping up on the web console.
specifically I tried:
prefect agent local start --api http://<IP_ADDR>
Ah, ok. Looks like you need to do:
Copy code
prefect agent local start --api http://<ADDR>:4200
OK, I think this is all set. Thank you Michael.