{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-auth-api-credential-request-schema.json",
  "title": "auth.ApiCredentialRequest",
  "description": "Credential request to get access to the API",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-auth-openapi.yml#/components/schemas/auth.ApiCredentialRequest",
  "type": "object",
  "properties": {
    "consumerKey": {
      "type": "string",
      "description": "Consumer Key to use for further authenticated calls",
      "format": "password",
      "readOnly": true
    },
    "state": {
      "allOf": [
        {
          "$ref": "#/$defs/auth.CredentialStateEnum"
        }
      ],
      "description": "State of the credential",
      "readOnly": true
    },
    "validationUrl": {
      "type": "string",
      "description": "Address where to redirect the client to validate the access",
      "readOnly": true
    }
  },
  "$defs": {
    "auth.CredentialStateEnum": {
      "type": "string",
      "description": "All states a Credential can be in",
      "enum": [
        "expired",
        "pendingValidation",
        "refused",
        "validated"
      ]
    }
  }
}