Consultar anexo da tarefa
GET
/api/seller/external/v1/task/{id}/attachment/{attachmentId}
curl --request GET \ --get "https://api.spelt.com.br/api/seller/external/v1/task/architecto/attachment/architecto" \ --header "Authorization: Bearer splt_live_SUA_CHAVE" \ --header "Content-Type: application/json" \ --header "Accept: application/json"const url = new URL( "https://api.spelt.com.br/api/seller/external/v1/task/architecto/attachment/architecto");
const headers = { "Authorization": "Bearer splt_live_SUA_CHAVE", "Content-Type": "application/json", "Accept": "application/json",};
fetch(url, { method: "GET", headers,}).then(response => response.json());$client = new \GuzzleHttp\Client();$url = 'https://api.spelt.com.br/api/seller/external/v1/task/architecto/attachment/architecto';$response = $client->get( $url, [ 'headers' => [ 'Authorization' => 'Bearer splt_live_SUA_CHAVE', 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], ]);$body = $response->getBody();print_r(json_decode((string) $body));import requestsimport json
url = 'https://api.spelt.com.br/api/seller/external/v1/task/architecto/attachment/architecto'headers = { 'Authorization': 'Bearer splt_live_SUA_CHAVE', 'Content-Type': 'application/json', 'Accept': 'application/json'}
response = requests.request('GET', url, headers=headers)response.json()Os dados do anexo e o conteúdo: content quando é texto, content_base64 nos demais. Arquivo acima de 256 KB
volta sem conteúdo (content_omitted: true): baixe pelo painel.
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Path Parameters
Seção intitulada “Path Parameters”id
required
string
ULID da tarefa.
attachmentId
required
string
ULID do anexo.
Responses
Seção intitulada “Responses”Media typeapplication/json
object
data
object
object
string
id
string
task_id
string
name
string
size
integer
mime_type
string
created_at
string
content
string
Example
{ "data": { "object": "task_attachment", "id": "01JA0000000000000000000050", "task_id": "01JA0000000000000000000010", "name": "briefing.md", "size": 1840, "mime_type": "text/plain", "created_at": "2026-11-28T10:00:00-03:00", "content": "# Briefing\n\nPúblico: donos de SaaS." }}Media typeapplication/json
object
error
string
Example
{ "error": "Recurso não encontrado"}