- getV1GeneratedDocumentsDocumentTypeRequestUuid - Get a generated document
Get a generated document given the request_uuid. The response will include the generation request's status and, if complete, the relevant document urls.
scope: generated_documents:read
import { Gusto } from "@speakeasy-sdks/gusto";
import {
GetV1GeneratedDocumentsDocumentTypeRequestUuidRequest,
GetV1GeneratedDocumentsDocumentTypeRequestUuidResponse,
} from "@speakeasy-sdks/gusto/dist/sdk/models/operations";
const sdk = new Gusto({
security: {
authorization: "",
},
});
const documentType: string = "accusamus";
const requestUuid: string = "similique";
sdk.generatedDocuments.getV1GeneratedDocumentsDocumentTypeRequestUuid(documentType, requestUuid).then((res: GetV1GeneratedDocumentsDocumentTypeRequestUuidResponse) => {
if (res.statusCode == 200) {
// handle response
}
});
Parameter | Type | Required | Description |
---|---|---|---|
documentType |
string | ✔️ | the type of document being generated |
requestUuid |
string | ✔️ | The UUID of the Generated Document Request |
config |
AxiosRequestConfig | ➖ | Available config options for making requests. |
Promise<operations.GetV1GeneratedDocumentsDocumentTypeRequestUuidResponse>