{
    "info": {
        "name": "Facepair API",
        "description": "Facepair Face Compare REST API. Endpoints: Status (check credits), Compare (two face images, multipart reference + capture or image1 + image2), Verify (same as Compare, used by SDK). Use X-API-Key header. One credit per compare\/verify.",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "variable": [
        {
            "key": "baseUrl",
            "value": "https:\/\/facepair.com\/fr\/api\/v1"
        },
        {
            "key": "apiKey",
            "value": "YOUR_API_KEY"
        }
    ],
    "item": [
        {
            "name": "Status (credits)",
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "Content-Type",
                        "value": "application\/x-www-form-urlencoded"
                    },
                    {
                        "key": "X-API-Key",
                        "value": "{{apiKey}}",
                        "description": "Optional: use instead of api_key in body"
                    }
                ],
                "body": {
                    "mode": "urlencoded",
                    "urlencoded": [
                        {
                            "key": "api_key",
                            "value": "{{apiKey}}",
                            "description": "Your API key (or send via X-API-Key header)"
                        }
                    ]
                },
                "url": {
                    "raw": "{{baseUrl}}\/status",
                    "host": [
                        "{{baseUrl}}"
                    ],
                    "path": [
                        "status"
                    ]
                },
                "description": "Check credits and API key validity. Send api_key in body or X-API-Key header. Returns credits count and valid\/has_key."
            }
        },
        {
            "name": "Compare (two images)",
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "X-API-Key",
                        "value": "{{apiKey}}",
                        "description": "Your API key (required)"
                    }
                ],
                "body": {
                    "mode": "formdata",
                    "formdata": [
                        {
                            "key": "reference",
                            "type": "file",
                            "src": "",
                            "description": "Reference face image (or use image1)"
                        },
                        {
                            "key": "capture",
                            "type": "file",
                            "src": "",
                            "description": "Capture face image to compare (or use image2)"
                        }
                    ]
                },
                "url": {
                    "raw": "{{baseUrl}}\/compare",
                    "host": [
                        "{{baseUrl}}"
                    ],
                    "path": [
                        "compare"
                    ]
                },
                "description": "Compare two face images. Multipart: reference + capture (or image1 + image2). One credit per call. Success response: { \"success\": true, \"data\": { \"similarity\", \"match\", \"confidence\", \"credits_remaining\" } }. On error: { \"success\": false, \"data\": { \"error\": \"...\" } }."
            }
        },
        {
            "name": "Verify (SDK-style)",
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "X-API-Key",
                        "value": "{{apiKey}}",
                        "description": "Your API key"
                    }
                ],
                "body": {
                    "mode": "formdata",
                    "formdata": [
                        {
                            "key": "reference",
                            "type": "file",
                            "src": "",
                            "description": "Reference face image"
                        },
                        {
                            "key": "capture",
                            "type": "file",
                            "src": "",
                            "description": "Capture face image"
                        }
                    ]
                },
                "url": {
                    "raw": "{{baseUrl}}\/verify",
                    "host": [
                        "{{baseUrl}}"
                    ],
                    "path": [
                        "verify"
                    ]
                },
                "description": "Same as Compare; used by the browser SDK. Uses one credit."
            }
        }
    ]
}