Generate authentication token (legacy)

POST/auth/token
RequiresBearerauthentication
Returns  

Response fields

tokenstringrequired
POSTRequest
# Get authentication token
PHENOML_TOKEN=$(curl -X POST "https://experiment.app.pheno.ml/v2/auth/token" \
  -u "$PHENOML_CLIENT_ID:$PHENOML_CLIENT_SECRET" \
  | jq -r '.access_token')

curl -X POST "https://experiment.app.pheno.ml/auth/token" \
  -H "Authorization: Bearer $PHENOML_TOKEN"
200 OKExample Response
{
  "token": "<access_token>"
}