{"files":{"SKILL.md":"---\nname: form-recognizer-client\ndescription: \"Form Recognizer Client API skill. Use when working with Form Recognizer Client for custom, prebuilt, layout. Covers 12 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# Form Recognizer Client\nAPI version: 2.0-preview\n\n## Auth\nApiKey Ocp-Apim-Subscription-Key in header\n\n## Base URL\nNot specified.\n\n## Setup\n1. Set your API key in the appropriate header\n2. GET /custom/models/{modelId} -- get custom model\n3. POST /custom/models -- create first model\n\n## Endpoints\n12 endpoints across 3 groups. See references/api-spec.lap for full details.\n\n### Custom\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /custom/models | Train Custom Model |\n| GET | /custom/models/{modelId} | Get Custom Model |\n| DELETE | /custom/models/{modelId} | Delete Custom Model |\n| POST | /custom/models/{modelId}/analyze | Analyze Form |\n| GET | /custom/models/{modelId}/analyzeResults/{resultId} | Get Analyze Form Result |\n| POST | /custom/models/{modelId}/copy | Copy Custom Model |\n| GET | /custom/models/{modelId}/copyResults/{resultId} | Get Custom Model Copy Result |\n| POST | /custom/models/copyAuthorization | Generate Copy Authorization |\n\n### Prebuilt\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /prebuilt/receipt/analyze | Analyze Receipt |\n| GET | /prebuilt/receipt/analyzeResults/{resultId} | Get Analyze Receipt Result |\n\n### Layout\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /layout/analyze | Analyze Layout |\n| GET | /layout/analyzeResults/{resultId} | Get Analyze Layout Result |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"Create a model?\" -> POST /custom/models\n- \"Get model details?\" -> GET /custom/models/{modelId}\n- \"Delete a model?\" -> DELETE /custom/models/{modelId}\n- \"Create a analyze?\" -> POST /custom/models/{modelId}/analyze\n- \"Get analyzeResult details?\" -> GET /custom/models/{modelId}/analyzeResults/{resultId}\n- \"Create a copy?\" -> POST /custom/models/{modelId}/copy\n- \"Get copyResult details?\" -> GET /custom/models/{modelId}/copyResults/{resultId}\n- \"Create a copyAuthorization?\" -> POST /custom/models/copyAuthorization\n- \"How to authenticate?\" -> See Auth section above\n\n## Response Tips\n- Check response schemas in references/api-spec.lap for field details\n- Create/update endpoints return the modified resource on success\n\n## References\n- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas\n\n> Generated from the official API spec by [LAP](https://lap.sh)\n","references/api-spec.lap":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api Form Recognizer Client\n@version 2.0-preview\n@auth ApiKey Ocp-Apim-Subscription-Key in header\n@endpoints 12\n@toc custom(8), prebuilt(2), layout(2)\n\n@group custom\n@endpoint POST /custom/models\n@desc Train Custom Model\n@required {trainRequest: map # Training request parameters.}\n@returns(201) Request is queued successfully.\n\n@endpoint GET /custom/models/{modelId}\n@desc Get Custom Model\n@required {modelId: any # Model identifier.}\n@optional {includeKeys: any # Include list of extracted keys in model information.}\n@returns(200) Success\n\n@endpoint DELETE /custom/models/{modelId}\n@desc Delete Custom Model\n@required {modelId: any # Model identifier.}\n@returns(204) Successfully marked model for deletion. Model artifacts will be removed within a predefined time period.\n\n@endpoint POST /custom/models/{modelId}/analyze\n@desc Analyze Form\n@required {modelId: any # Model identifier.}\n@optional {includeTextDetails: any # Include text lines and element references in the result., fileStream: map # .json, .pdf, .jpg, .png or .tiff type file stream.}\n@returns(202) Request is queued successfully.\n\n@endpoint GET /custom/models/{modelId}/analyzeResults/{resultId}\n@desc Get Analyze Form Result\n@required {modelId: any # Model identifier., resultId: any # Analyze operation result identifier.}\n@returns(200) Success\n\n@endpoint POST /custom/models/{modelId}/copy\n@desc Copy Custom Model\n@required {modelId: any # Model identifier., copyRequest: map # Copy request parameters.}\n@returns(202) Copy request is queued successfully.\n\n@endpoint GET /custom/models/{modelId}/copyResults/{resultId}\n@desc Get Custom Model Copy Result\n@required {modelId: any # Model identifier., resultId: any # Copy operation result identifier.}\n@returns(200) Success\n\n@endpoint POST /custom/models/copyAuthorization\n@desc Generate Copy Authorization\n@returns(201) Copy request is authorized successfully.\n\n@endgroup\n\n@group prebuilt\n@endpoint POST /prebuilt/receipt/analyze\n@desc Analyze Receipt\n@optional {includeTextDetails: any # Include text lines and element references in the result., fileStream: map # .json, .pdf, .jpg, .png or .tiff type file stream.}\n@returns(202) Request is queued successfully.\n\n@endpoint GET /prebuilt/receipt/analyzeResults/{resultId}\n@desc Get Analyze Receipt Result\n@required {resultId: any # Analyze operation result identifier.}\n@returns(200) Success\n\n@endgroup\n\n@group layout\n@endpoint POST /layout/analyze\n@desc Analyze Layout\n@optional {fileStream: map # .json, .pdf, .jpg, .png or .tiff type file stream.}\n@returns(202) Request is queued successfully.\n\n@endpoint GET /layout/analyzeResults/{resultId}\n@desc Get Analyze Layout Result\n@required {resultId: any # Analyze operation result identifier.}\n@returns(200) Success\n\n@endgroup\n\n@end\n"}}