x402

API Mock Response (x402)

Generate a realistic mock API response with proper headers, status codes, and schema-matching body data.

get/x402/v2/api-mock-response

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/api-mock-response
  • Auth: none required

Query parameters

urlstring required
methodstring
status_codeinteger
response_schemaobject

Response

Success

bodyunknown
headersobject
status_codeinteger
content_typestring

Example response

{
  "url": "https://example.com",
  "body": {
    "data": {
      "id": "user_123456",
      "name": "John Doe",
      "email": "john.doe@example.com",
      "status": "active",
      "profile": {
        "bio": "Software Engineer",
        "location": "San Francisco, CA",
        "avatar_url": "https://example.com/avatars/user_123456.jpg"
      },
      "created_at": "2023-06-15T08:30:00Z",
      "updated_at": "2024-01-10T14:32:15Z"
    },
    "meta": {
      "version": "1.0",
      "timestamp": "2024-01-10T14:32:15Z"
    },
    "success": true
  },
  "method": "GET",
  "headers": {
    "Date": "Wed, 10 Jan 2024 14:32:15 GMT",
    "ETag": "W/\"33a64df551425fcc55e4d42a148795d9f25f89d4\"",
    "Server": "nginx/1.24.0",
    "Connection": "keep-alive",
    "Content-Type": "application/json",
    "X-Request-Id": "550e8400-e29b-41d4-a716-446655440000",
    "Cache-Control": "public, max-age=300",
    "X-RateLimit-Limit": "5000",
    "X-RateLimit-Reset": "1699564800",
    "X-RateLimit-Remaining": "4999"
  },
  "status_code": 200,
  "content_type": "application/json"
}

Changes

No recorded changes to this operation across all 1 revision of this API.