> ## Documentation Index > Fetch the complete documentation index at: https://docs.graphiant.com/llms.txt > Use this file to discover all available pages before exploring further. # /v1/sdk-automation/playbook/jobs/{jobId}/logs > Get masked ansible logs for a job, optionally filtered by phase and paged with first / after ## OpenAPI ````json GET /v1/sdk-automation/playbook/jobs/{jobId}/logs { "openapi": "3.0.0", "info": { "title": "Graphiant APIs", "version": "1.0.0", "description": "Graphiant API documentation." }, "servers": [ { "url": "https://api.graphiant.com" } ], "security": [ { "jwtAuth": [] } ], "tags": [], "paths": { "/v1/sdk-automation/playbook/jobs/{jobId}/logs": { "get": { "security": [ { "jwtAuth": [] } ], "parameters": [ { "in": "header", "name": "Authorization", "required": true, "schema": { "type": "string" }, "description": "Bearer token. Format: Bearer " }, { "name": "jobId", "in": "path", "required": true, "description": "Job id whose logs are requested", "schema": { "type": "string", "example": "example string" } }, { "name": "phase", "in": "query", "description": "Optional phase filter (dry_run / deploy / post_deploy_check); unset returns all", "required": false, "schema": { "type": "string", "example": "ENUM_VALUE" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/v1SdkAutomationPlaybookJobsJobIdLogsGetResponse" } } } } }, "description": "Get masked ansible logs for a job, optionally filtered by phase and paged with first / after" } } }, "components": { "schemas": { "v1SdkAutomationPlaybookJobsJobIdLogsGetResponse": { "type": "object", "properties": { "lines": { "type": "array", "items": { "type": "string", "example": "example string", "description": "Masked ansible log lines for the job (and optional phase)" } }, "pageInfo": { "$ref": "#/components/schemas/commonPageInfo" } }, "additionalProperties": false }, "commonPageInfo": { "type": "object", "properties": { "currentPage": { "type": "integer", "format": "int32", "example": 1, "minimum": 0, "description": "The page number we are currently on (required)" }, "endCursor": { "type": "string", "example": "xxxxxxy", "description": "Cursor pointing to the last record on the current page" }, "hasNextPage": { "type": "boolean", "example": true, "description": "An indicator whether there is a page after this one in the resultset based on current position" }, "hasPrevPage": { "type": "boolean", "example": true, "description": "An indicator whether there is a page before this one in the resultset based on current position" }, "startCursor": { "type": "string", "example": "xxxxxx", "description": "Cursor pointing to the first record on the current page" }, "totalPages": { "type": "integer", "format": "int32", "example": 4, "minimum": 0, "description": "The number of pages in the complete resultset based on the current length of the page (required)" }, "totalRecords": { "type": "integer", "format": "int32", "example": 400, "minimum": 0, "description": "Describes the total number of records in the complete resultset (required)" } }, "additionalProperties": false } }, "securitySchemes": { "jwtAuth": { "type": "apiKey", "in": "header", "name": "authorization", "description": "Use `Bearer `" } } } } ````