ReqRes · Schema

AgentUserListResponse

AgentUserListResponse schema from ReqRes API

DevelopmentTestingPrototypingFake APIRESTAgent Sandbox

Properties

Name Type Description
data array
meta object
View JSON Schema on GitHub

JSON Schema

reqres-agent-user-list-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/reqres/refs/heads/main/json-schema/reqres-agent-user-list-response-schema.json",
  "title": "AgentUserListResponse",
  "description": "AgentUserListResponse schema from ReqRes API",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "email",
          "full_name",
          "locale",
          "created_at",
          "updated_at",
          "timezone",
          "profile",
          "preferences",
          "status"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^usr_[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$"
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "full_name": {
            "type": "string"
          },
          "locale": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "timezone": {
            "type": "string"
          },
          "profile": {
            "type": "object",
            "properties": {
              "avatar_url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "bio": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "department": {
                    "type": "string"
                  },
                  "employee_id": {
                    "type": "string"
                  }
                }
              },
              "social": {
                "type": "object",
                "properties": {
                  "twitter": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "github": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "linkedin": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                }
              }
            }
          },
          "preferences": {
            "type": "object"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "suspended"
            ]
          }
        }
      }
    },
    "meta": {
      "type": "object",
      "required": [
        "limit",
        "returned",
        "next_cursor",
        "prev_cursor",
        "has_more",
        "total_estimate"
      ],
      "properties": {
        "limit": {
          "type": "integer"
        },
        "returned": {
          "type": "integer"
        },
        "next_cursor": {
          "type": [
            "string",
            "null"
          ],
          "description": "Opaque cursor or null if at end."
        },
        "prev_cursor": {
          "type": [
            "string",
            "null"
          ],
          "description": "Always null in v1 (forward-only pagination)."
        },
        "has_more": {
          "type": "boolean"
        },
        "total_estimate": {
          "type": "integer"
        }
      }
    }
  },
  "required": [
    "data",
    "meta"
  ]
}