{% extends 'dashboard/base.html' %} {% load humanize %} {% block title %}{{ api.display_name|default:api.name }} - Peza API{% endblock %} {% block breadcrumb %}{{ api.display_name|default:api.name }}{% endblock %} {% block content %}

{{ api.display_name|default:api.name }}

Provider: {{ api.provider }} {{ api.get_category_display }}

API Description

{{ api.description }}

{% if api.long_description %}
{{ api.long_description }}
{% endif %}
Base URL:
{{ api.base_url }}

Performance Metrics

Average Latency
{{ api.average_latency_ms|default:"—" }} ms
P95 Latency
{{ api.p95_latency_ms|default:"—" }} ms
Uptime
{{ api.uptime_percentage|default:"—" }}%

Features

{% for feature in api.features %}
{{ feature }}
{% endfor %}

Example Request

cURL Example:
# Verify Phone Number
curl -X POST \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"phone": "+265888123456"}' \
  "{{ api.base_url }}verify/phone/"
This API requires authentication via the X-API-Key header
{% endblock %}