Velocity Network Foundation APIs for REC Verifiable Credentialing Platform¶
This document outlines the Velocity Network Foundation (VNF) APIs required for implementing the REC Verifiable Credentialing Platform, their purposes, key endpoints, and how they map to the application requirements.
Overview of Required APIs¶
The REC Verifiable Credentialing Platform needs to integrate with the following Velocity Network Foundation APIs:
- Registrar API - For organization registration and management
- Agent Operator API - For credential issuance and verification
- Push Gateway API - For notifications and credential offers
- CIH Operator API - For credential issuance hub operations
- Agent Credential Holder API - For credential holder operations
Mock Server URLs for Development¶
| API | Mock Server URL |
|---|---|
| Registrar API | https://stoplight.io/mocks/velocitycareerlabs/registrar-api/27695925 |
| Agent Operator API | https://stoplight.io/mocks/velocitycareerlabs/agent-services-api/9088762 |
| Push Gateway API | https://stoplight.io/mocks/velocitycareerlabs/push-gateway-api/66945276 |
| CIH Operator API | https://stoplight.io/mocks/velocitycareerlabs/cih-operator-api/454985889 |
| Agent Credential Holder API | https://stoplight.io/mocks/velocitycareerlabs/velocity-network-exchange-protocol/219930116 |
Detailed API Descriptions and Key Endpoints¶
1. Registrar API¶
Purpose: Manages organization registration and verification on the Velocity Network.
Key Endpoints:
POST /organizations- Register a new organizationGET /organizations/{id}- Get organization detailsPUT /organizations/{id}- Update organization detailsGET /organizations/{id}/status- Check organization verification statusPOST /organizations/{id}/verify- Submit organization for verification
Application Use Cases: - Organization onboarding (F-OO-01: Organization Registration) - Know Your Business (KYB) verification (F-OO-02: Business Verification) - Organization profile management (F-OO-03: Company Profile Management)
2. Agent Operator API¶
Purpose: Handles credential issuance, verification, and management operations.
Key Endpoints:
POST /credentials/issue- Issue a new credentialGET /credentials/{id}- Get credential detailsPUT /credentials/{id}/status- Update credential status (revoke, suspend)POST /credentials/verify- Verify a credentialGET /issuers- Get list of registered issuersGET /verifiers- Get list of registered verifiers
Application Use Cases: - Credential issuance (F-CI-03: Velocity Credential Agent Integration) - Credential verification (F-CV-01: Verification Process Integration) - Credential status management
3. Push Gateway API¶
Purpose: Manages notifications and credential offers to credential holders.
Key Endpoints:
POST /notifications- Send a notificationPOST /offers- Send a credential offerGET /offers/{id}/status- Check offer statusPOST /disclosure-requests- Send a disclosure requestGET /disclosure-requests/{id}/status- Check disclosure request status
Application Use Cases: - Credential offer notifications (F-CI-04: Candidate Notification) - Disclosure request notifications (F-CD-03: Disclosure Request Delivery) - Email and notification templates (F-CI-05: Email and Landing Page Configuration)
4. CIH Operator API¶
Purpose: Manages the Credential Issuance Hub operations for batch processing and advanced issuance scenarios.
Key Endpoints:
POST /batch/upload- Upload batch credential dataGET /batch/{id}/status- Check batch processing statusGET /batch/{id}/results- Get batch processing resultsPOST /templates- Create credential templateGET /templates- List credential templatesPOST /batch/process- Process batch using template
Application Use Cases: - Batch credential issuance (F-CI-02: Batch Credential Issuance) - CSV upload and processing - Credential template management
5. Agent Credential Holder API¶
Purpose: Manages interactions with credential holders, including credential sharing and disclosure.
Key Endpoints:
POST /holders/{id}/credentials- Add credential to holder's walletGET /holders/{id}/credentials- List holder's credentialsPOST /holders/{id}/share- Share credentialsGET /disclosures/{id}- Get disclosure detailsPOST /disclosures/{id}/accept- Accept disclosure requestPOST /disclosures/{id}/reject- Reject disclosure request
Application Use Cases: - Credential disclosure (F-CD-01: Disclosure Request Configuration) - Credential sharing - Verification policy enforcement (F-CD-02: Verification Policy Configuration)
API Usage by Feature¶
Organization Onboarding¶
- Organization Registration (F-OO-01)
- Registrar API:
POST /organizations -
Registrar API:
GET /organizations/{id}/status -
Business Verification (F-OO-02)
- Registrar API:
POST /organizations/{id}/verify -
Registrar API:
GET /organizations/{id}/status -
Company Profile Management (F-OO-03)
- Registrar API:
PUT /organizations/{id} - Registrar API:
GET /organizations/{id}
Credential Issuance¶
- Manual Credential Issuance (F-CI-01)
- Agent Operator API:
POST /credentials/issue -
Push Gateway API:
POST /offers -
Batch Credential Issuance (F-CI-02)
- CIH Operator API:
POST /batch/upload - CIH Operator API:
POST /batch/process -
CIH Operator API:
GET /batch/{id}/status -
Velocity Credential Agent Integration (F-CI-03)
- Agent Operator API: Various endpoints
-
Registrar API: Various endpoints
-
Candidate Notification (F-CI-04)
- Push Gateway API:
POST /notifications - Push Gateway API:
POST /offers
Credential Disclosure¶
- Disclosure Request Configuration (F-CD-01)
- Agent Credential Holder API:
POST /disclosures -
Push Gateway API:
POST /disclosure-requests -
Verification Policy Configuration (F-CD-02)
- Agent Operator API:
POST /policies -
Agent Credential Holder API:
POST /disclosures -
Disclosure Request Delivery (F-CD-03)
- Push Gateway API:
POST /disclosure-requests - Push Gateway API:
GET /disclosure-requests/{id}/status
Credential Verification¶
- Verification Process Integration (F-CV-01)
- Agent Operator API:
POST /credentials/verify -
Agent Credential Holder API:
GET /disclosures/{id} -
Verification Results Display (F-CV-02)
- Agent Operator API:
POST /credentials/verify -
Agent Operator API:
GET /verifications/{id} -
Verification Report Generation (F-CV-03)
-
Agent Operator API:
GET /verifications/{id}/report -
Universal Credential Verification (F-CV-04)
- Agent Operator API:
POST /credentials/verify - Agent Credential Holder API:
GET /disclosures/{id}
Testing Approach¶
To test these APIs with the Velocity site:
- Access the Stoplight Mock Servers:
- Use the provided mock server URLs to explore the API documentation
-
Test API endpoints directly through the Stoplight interface
-
Test Key Workflows:
- Organization registration and verification
- Credential issuance (manual and batch)
- Credential verification
-
Disclosure requests
-
Validate Response Formats:
- Ensure the response formats match what your application expects
-
Document any discrepancies or additional fields
-
Test Error Scenarios:
- Invalid requests
- Missing required fields
- Authentication failures
Next Steps¶
- Explore the API documentation on Stoplight for each API
- Test key endpoints using the mock servers
- Document the exact request/response formats needed for implementation
- Implement API integration services in the backend
- Create unit tests for API interactions
Resources¶
- Velocity Network Foundation
- VNF Wallet SDK for Node.js
- Stoplight API Documentation (available through the mock server URLs)