{"items":[{"type":"link","label":"postback-api-v2","link":"/ja/apis/postback-v2/openapi","routeSlug":"/ja/apis/postback-v2/openapi","content":{"contentType":"overview","meta":{"name":"postback-api-v2"},"children":[{"nodeType":"container","panels":[{"title":"Download OpenAPI description","titleTranslationKey":"download.description.title","children":[{"kind":"download","label":"openapi.json","url":"/_bundle/@l10n/ja/apis/postback-v2/openapi.json?download"},{"kind":"download","label":"openapi.yaml","url":"/_bundle/@l10n/ja/apis/postback-v2/openapi.yaml?download"}]},{"title":"Overview","titleTranslationKey":"info.title","children":[]},{"title":"Languages","titleTranslationKey":"languages.title","children":[{"kind":"languages","options":[{"key":"curl","title":"curl","lang":"curl"},{"key":"javascript","title":"JavaScript","lang":"JavaScript"},{"key":"node","title":"Node.js","lang":"Node.js"},{"key":"python","title":"Python","lang":"Python"},{"key":"java","title":"Java","lang":"Java"},{"key":"csharp","title":"C#","lang":"C#"},{"key":"php","title":"PHP","lang":"PHP"},{"key":"go","title":"Go","lang":"Go"},{"key":"ruby","title":"Ruby","lang":"Ruby"},{"key":"r","title":"R","lang":"R"},{"key":"payload","title":"Payload","lang":"Payload"}]}]},{"title":"Servers","titleTranslationKey":"servers.title","children":[{"kind":"servers","servers":[{"url":"https://{region}.records.in.treasuredata.com","variables":{"region":{"default":"us01","description":"TD region host prefix (e.g. us01, eu01, ap02)"}}}],"mode":"default"}]}],"children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"header","level":1,"label":"postback-api-v2 (2.0.0)","showPageActions":true},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":"This spec is for Postback API v2 (records.in.treasuredata.com)"}],"sectionId":"/ja/apis/postback-v2/openapi"}],"sectionId":"/ja/apis/postback-v2/openapi"}]}]}},{"label":"POST Postback API v2","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/ja/apis/postback-v2/openapi/other/postpostbackapiv2","routeSlug":"/ja/apis/postback-v2/openapi/other/postpostbackapiv2","metadata":{"seo":{"title":"POST Postback API v2","description":"Send data in POST payload to the v2 Postback endpoint."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"postPostbackAPIv2","name":"POST Postback API v2","isWebhook":false,"pointer":"/paths/~1postback~1v3~1event~1{database_name}~1{table_name}/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"POST Postback API v2","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Send data in POST payload to the v2 Postback endpoint."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Authentication is "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"header-only"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Provide one of:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":true,"marker":"."},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization: TD1 <APIKEY>"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"X-TD-Write-Key: <APIKEY>"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"URL-path keys ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"?td_write_key=..."},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":") accepted by the legacy endpoint are "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"not"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" supported here. If both headers are sent, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" takes precedence."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note: Requests with an invalid API key return a 200 HTTP status code. This behavior is intentional and ensures a fast response, preventing ingestion from being canceled due to slow response. After the response is returned, the endpoint performs asynchronous validations. If the API key is invalid, an authentication failure will be raised despite the initial 200 status."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Maximum request body size is 1,048,064 bytes; larger payloads are rejected with "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"413"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"TD1Authorization","scopes":[],"type":"apiKey","in":"header","paramName":"Authorization","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Format: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"TD1 <APIKEY>"},"children":[]}]}]}]}]},{"schemes":[{"name":"XTDWriteKey","scopes":[],"type":"apiKey","in":"header","paramName":"X-TD-Write-Key"}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"database_name","in":"path","schemaId":"schema_1163","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Name of the database the table is in. Name may contain letters, numbers or _ ."},"children":[]}]}]}],"required":true},{"name":"table_name","in":"path","schemaId":"schema_1163","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Name of the table to log data to. Name may contain letters, numbers or _ ."},"children":[]}]}]}],"required":true}],"pointer":"/paths/~1postback~1v3~1event~1{database_name}~1{table_name}/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_1164","exampleIds":["paths/~1postback~1v3~1event~1{database_name}~1{table_name}/post/requestBody/content/application~1json/examples/generic","paths/~1postback~1v3~1event~1{database_name}~1{table_name}/post/requestBody/content/application~1json/examples/td"]}},"schemaId":"schema_1164","exampleIds":["paths/~1postback~1v3~1event~1{database_name}~1{table_name}/post/requestBody/content/application~1json/examples/generic","paths/~1postback~1v3~1event~1{database_name}~1{table_name}/post/requestBody/content/application~1json/examples/td"],"pointer":"/paths/~1postback~1v3~1event~1{database_name}~1{table_name}/post/requestBody","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The body of the request can be any key value pairs you want to send. Specify JSON as a body. The JSON content immediately becomes a record in Treasure Data. Also include "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Content-Type: application/json"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" in HTTP request headers."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Suggested Parameters:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"td_record_time"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": UNIX timestamp value, to set time column in Treasure Data. If it's not specified, the time records were received is used instead. Received timestamps that are older than 7 days, and newer than 3 days ahead of the current date are ignored."},"children":[]},{"$$mdtype":"Node","type":"hardbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"td_global_id"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": TD global ID "},"children":[]},{"$$mdtype":"Node","type":"hardbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"td_ua"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": user-agent"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Parameter values are processed as the data type string, and cannot be changed at the ingestion time."},"children":[]}]}]}]}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/postback/v3/event/{database_name}/{table_name}","servers":[{"url":"https://{region}.records.in.treasuredata.com","variables":{"region":{"default":"us01"}}}],"parameters":{"path":[{"name":"database_name","in":"path","required":true,"schemaId":"schema_1163"},{"name":"table_name","in":"path","required":true,"schemaId":"schema_1163"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"TD1Authorization","type":"apiKey","name":"Authorization","in":"header"}],"scopes":[]},{"schemes":[{"id":"XTDWriteKey","type":"apiKey","name":"X-TD-Write-Key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_1164","exampleIds":["paths/~1postback~1v3~1event~1{database_name}~1{table_name}/post/requestBody/content/application~1json/examples/generic","paths/~1postback~1v3~1event~1{database_name}~1{table_name}/post/requestBody/content/application~1json/examples/td"]}},"responseCodes":["200","400","403","413"],"pointer":"/postback/v3/event/{database_name}/{table_name}","href":"other/postpostbackapiv2","openApiOperationId":"postPostbackAPIv2","summary":"POST Postback API v2","securityGroups":[{"TD1Authorization":[]},{"XTDWriteKey":[]}]},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://{region}.records.in.treasuredata.com","variables":{"region":{"default":"us01"}}}],"schemaId":"schema_1164","exampleIds":["paths/~1postback~1v3~1event~1{database_name}~1{table_name}/post/requestBody/content/application~1json/examples/generic","paths/~1postback~1v3~1event~1{database_name}~1{table_name}/post/requestBody/content/application~1json/examples/td"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_1164","exampleIds":["paths/~1postback~1v3~1event~1{database_name}~1{table_name}/post/requestBody/content/application~1json/examples/generic","paths/~1postback~1v3~1event~1{database_name}~1{table_name}/post/requestBody/content/application~1json/examples/td"]}},"examples":[{},{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Success.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/AllResponse"}},"schemaId":"components/schemas/AllResponse"},{"code":"400","description":"Bad Request","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/AllResponse"}},"schemaId":"components/schemas/AllResponse"},{"code":"403","description":"Forbidden","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/AllResponse"}},"schemaId":"components/schemas/AllResponse"},{"code":"413","description":"Payload Too Large (request body exceeds 1,048,064 bytes)","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/AllResponse"}},"schemaId":"components/schemas/AllResponse"}],"pointer":"/paths/~1postback~1v3~1event~1{database_name}~1{table_name}/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/AllResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/AllResponse"}}},{"code":"400","schemaId":"components/schemas/AllResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/AllResponse"}}},{"code":"403","schemaId":"components/schemas/AllResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/AllResponse"}}},{"code":"413","schemaId":"components/schemas/AllResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/AllResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/other/postpostbackapiv2"}],"panels":[]}]},"httpPath":"/postback/v3/event/{database_name}/{table_name}"}],"store":{"schemaStore":{"components/schemas/AllResponse":{"id":"components/schemas/AllResponse","kind":"json-schema","title":"Response","data":{"type":"object","title":"Response","description":"response for all objects","properties":{"Content-Type":{"type":"string","example":"application/json"},"Date":{"type":"string","format":"date-time","example":"Wed, DD MM YYYY xx:yy:zz GMT"},"Strict-Transport-Security":{"type":"string","example":"max-age=31536000"},"Content-Length":{"type":"integer","example":2},"Connection":{"type":"string","example":"keep-alive"}}}},"schema_1163":{"kind":"json-schema","data":{"type":"string"},"id":"schema_1163"},"schema_1164":{"kind":"json-schema","data":{"type":"object","additionalProperties":true},"id":"schema_1164"}},"exampleStore":{"paths/~1postback~1v3~1event~1{database_name}~1{table_name}/post/requestBody/content/application~1json/examples/generic":{"value":{"param1":"value1","param2":"value2"},"key":"generic","summary":"Generic Example","id":"paths/~1postback~1v3~1event~1{database_name}~1{table_name}/post/requestBody/content/application~1json/examples/generic"},"paths/~1postback~1v3~1event~1{database_name}~1{table_name}/post/requestBody/content/application~1json/examples/td":{"value":{"td_global_id":"xxxxx","td_ua":"user agent"},"key":"td","summary":"TD Example","id":"paths/~1postback~1v3~1event~1{database_name}~1{table_name}/post/requestBody/content/application~1json/examples/td"}},"securitySchemeStore":{"XTDWriteKey":{"id":"XTDWriteKey","type":"apiKey","in":"header","paramName":"X-TD-Write-Key"},"TD1Authorization":{"id":"TD1Authorization","type":"apiKey","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Format: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"TD1 <APIKEY>"},"children":[]}]}]}],"in":"header","paramName":"Authorization"}},"servers":[{"url":"https://{region}.records.in.treasuredata.com","variables":{"region":{"default":"us01","description":"TD region host prefix (e.g. us01, eu01, ap02)"}}}],"specType":"openapi"},"options":{"mockServer":{"off":true},"disableRouter":true,"downloadUrls":[{"url":"/_bundle/@l10n/ja/apis/postback-v2/openapi.json?download"},{"url":"/_bundle/@l10n/ja/apis/postback-v2/openapi.yaml?download"}],"excludeFromSearch":false,"replayFeatures":{"graphql":false},"specType":"openapi","markdocOptions":{"tags":{},"nodes":{},"components":{}},"metadata":{"title":"postback-api-v2","description":"This spec is for Postback API v2 (records.in.treasuredata.com)"}},"baseSlug":"/ja/apis/postback-v2/openapi","routesMapping":{}}