Create an API key
Workspace API keys authenticate server-to-server requests to the Corigin API. Workspace owners and admins can create them. Each secret is shown once and cannot be used to create, list, or revoke other API keys.
Authenticate the CLI, then create an API key.
corigin login
export CORIGIN_API_KEY_NAME="production"
corigin api-keys create "$CORIGIN_API_KEY_NAME"The command prints only the new secret. Store it when the command returns.
Use the API key
Send the secret in the X-Corigin-API-Key header.
curl --request GET \
--url "https://api.corigin.dev/v1/repos" \
--header "X-Corigin-API-Key: $CORIGIN_API_KEY"