API Keys Requests
dev-api

List API key requests

Changed on

Get a filtered list of API key requests/usage logs

post/developers/api_keys/requests

Request

  • Base URL
    https://gateway.prem.io
  • Auth
    HTTP bearer and API key in header Authorization

Request body

api_key_idstring[]

Filter by API key ID(s)

created_at_fromstring mysql-date-time

Filter requests from this date

created_at_tostring mysql-date-time

Filter requests until this date

statusstring[]

Filter by HTTP response status code

methodstring[]

Filter by HTTP method

searchstring

General search across path, ID, scope, and IP

limitinteger

Maximum number of results to return

offsetinteger

Number of results to skip

Response

Successful API key requests list response

status200 | 201 | 202 required

Status code of the response

errorstring nullable

Error message of the response, human readable

messagestring nullable required

Message of the response, human readable

env'development' | 'production' required

API environment

support_idstring uuid nullable

Support ID linked to the response, used to identify it when talking with our team.

Example response

{
  "data": {
    "count": 2,
    "items": [
      {
        "id": 12345,
        "is_developer": 1,
        "organization_id": "org_0197c0ec-a197-719f-84a9-99270a79b42a",
        "user_id": null,
        "api_key_id": "api_key_0197c0ec-a197-719f-84a9-99270a79b42a",
        "session_id": null,
        "support_id": null,
        "ip": "127.0.0.1",
        "path": "/products",
        "method": "POST",
        "user_agent": "MyApp/1.0.0",
        "ms": 234.5678,
        "overhead_ms": 12.3456,
        "response_code": "201",
        "response_body": {
          "data": {
            "id": "prod_123",
            "name": "Test Product"
          }
        },
        "request_body": "{\"name\": \"Test Product\", \"price\": 19.99}",
        "request_headers": "Content-Type: application/json",
        "memory_peak": 2048,
        "created_at": "2025-07-01 12:34:56"
      },
      {
        "id": 12346,
        "is_developer": 1,
        "organization_id": "org_0197c0ec-a197-719f-84a9-99270a79b42a",
        "user_id": null,
        "api_key_id": "api_key_0197c0ec-a197-719f-84a9-99270a79b42a",
        "session_id": null,
        "support_id": null,
        "ip": "127.0.0.1",
        "path": "/products/prod_123",
        "method": "GET",
        "user_agent": "MyApp/1.0.0",
        "ms": 89.1234,
        "overhead_ms": null,
        "response_code": "200",
        "response_body": {
          "data": {
            "id": "prod_123",
            "name": "Test Product",
            "price": 19.99
          }
        },
        "request_body": null,
        "request_headers": "Authorization: REDACTED",
        "memory_peak": 1024,
        "created_at": "2025-07-01 12:35:30"
      }
    ]
  }
}

Changes

    • warning

      removed the optional property /////// from the response with the status

    • warning

      added the new 405.00 enum value to the / response property for the response status

    • warning

      added the new 405.00 enum value to the / response property for the response status

    • warning

      added the new 405.00 enum value to the response property for the response status

    • warning

      added the new 409.00 enum value to the / response property for the response status

    • warning

      added the new 409.00 enum value to the / response property for the response status

    • warning

      added the new 409.00 enum value to the response property for the response status

    • warning

      added the new 500.00 enum value to the / response property for the response status

    • warning

      added the new 500.00 enum value to the / response property for the response status

    • warning

      added the new 500.00 enum value to the response property for the response status

    • info

      added the optional property /////// to the response with the status

    • info

      added the optional property /////// to the response with the status

    • info

      endpoint added