Project Key, registry, host, and credentials

Four Graftcode concepts are easy to confuse. They are separate and serve different purposes:

Note

Project Key registers the Gateway in a project. The registry URL installs the Graft. The

runtime host executes methods. The call credential authorizes a specific call.

Project Key registers the Gateway, the registry URL installs the Graft, the runtime host executes methods, and the call credential authorizes a specific call

The canonical table

ConceptSet on / used byPurposeExample
Project KeyGateway at startup (--projectKey, GC_PROJECT_KEY)Registers the Gateway in a portal project; gives stable publication identitydev:eyJ...
Registry URLCaller package managerInstalls the generated Graft packagehttps://grft.dev
Runtime hostGraftConfig host fieldExecutes methods — in-memory or a remote Gateway endpointws://host/ws, wss://host/ws, inmemory
Call credentialA method parameter or a generated headerAuthorizes one specific invocationAuthorization: Bearer <token>

What each is not

  • The Project Key is not a registry URL and not proof that a runtime call is authorized.
  • The registry URL is only for installation; it is not the runtime endpoint.
  • GraftConfig host is the runtime endpoint for executing calls — it is never the registry URL.
  • A call credential is validated by your Receiver; it is not replaced by the Project Key or TLS.

Where to go next