{"id":808,"date":"2026-10-29T13:32:11","date_gmt":"2026-10-29T13:32:11","guid":{"rendered":"https:\/\/vectalk.com.br\/blog\/whatsapp-cloud-api-java-spring-boot\/"},"modified":"2026-10-29T13:32:21","modified_gmt":"2026-10-29T13:32:21","slug":"whatsapp-cloud-api-java-spring-boot","status":"publish","type":"post","link":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-cloud-api-java-spring-boot\/","title":{"rendered":"WhatsApp Cloud API with Java (Spring Boot): Sending Messages and Webhooks from Scratch"},"content":{"rendered":"\n<p><em>Updated on October 29, 2026<\/em><\/p>\n\n\n\n<p>To use the WhatsApp API with Java, you need two pieces: an HTTP client that calls <code>POST \/&lt;PHONE_NUMBER_ID&gt;\/messages<\/code> on the Cloud API, and a webhook endpoint that answers Meta&#8217;s verification challenge, validates the <code>X-Hub-Signature-256<\/code> signature and returns <code>200<\/code> before processing the message. With Spring Boot, <code>RestClient<\/code> handles sending and a <code>@RestController<\/code> plus <code>@Async<\/code> handles the webhook, with no WhatsApp library at all.<\/p>\n\n\n\n<p>This tutorial builds the project from scratch: sending text and template messages, a complete webhook, a bot that replies with buttons and a unit test for the signature. The code works directly with Meta or through Vectalk by changing two environment variables. If you prefer another language, see the <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-bot-python-fastapi\/\">Python with FastAPI<\/a> and <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-bot-nodejs-express\/\">Node.js with Express<\/a> versions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How the flow works<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>A customer sends a message to your number.<\/li>\n\n\n<li>Meta sends a <code>POST<\/code> with the event to your webhook.<\/li>\n\n\n<li>The controller validates the signature, returns <code>200<\/code> immediately and hands the event to an asynchronous service.<\/li>\n\n\n<li>The service decides on the reply and calls the Cloud API with <code>RestClient<\/code>.<\/li>\n\n<\/ol>\n\n\n\n<p>The reply goes out inside the <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-24-hour-customer-service-window\/\">24-hour customer service window<\/a> opened by the customer&#8217;s message, so it can be free-form text or an interactive message. To start a conversation, you need an approved template. The concepts behind all this are in the <a href=\"https:\/\/vectalk.com.br\/blog\/en\/official-whatsapp-api\/\">official WhatsApp API<\/a> guide.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What you need first<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Variable<\/th><th>What it is<\/th><th>Where to find it<\/th><\/tr><\/thead><tbody><tr><td><code>PHONE_NUMBER_ID<\/code><\/td><td>The number&#8217;s ID on the Cloud API<\/td><td>App Dashboard, WhatsApp section<\/td><\/tr><tr><td><code>ACCESS_TOKEN<\/code><\/td><td>Token with the <code>whatsapp_business_messaging<\/code> permission<\/td><td><a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-api-permanent-access-token\/\">Permanent system user access token<\/a><\/td><\/tr><tr><td><code>APP_SECRET<\/code><\/td><td>The app secret, used for the signature<\/td><td>App settings &gt; Basic<\/td><\/tr><tr><td><code>VERIFY_TOKEN<\/code><\/td><td>Any text you choose<\/td><td>You define it and repeat it in the dashboard<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Locally you need JDK 21 or later and Maven (the generated project already ships with <code>mvnw<\/code>). The code targets Spring Boot 4, which uses Jackson 3. It also works on Spring Boot 3.2 or later: just swap the <code>JsonMapper<\/code> import as noted in section 4.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. Create the project<\/h2>\n\n\n\n<p>Generate the skeleton with Spring Initializr, using only the web dependency:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-bash\">curl https:\/\/start.spring.io\/starter.zip \\\n  -d type=maven-project -d language=java -d javaVersion=21 \\\n  -d dependencies=web -d groupId=br.exemplo -d artifactId=whatsapp-bot \\\n  -d packageName=br.exemplo.bot -d baseDir=whatsapp-bot -o whatsapp-bot.zip\nunzip whatsapp-bot.zip &amp;&amp; cd whatsapp-bot<\/code><\/pre>\n\n\n\n<p>Configure <code>src\/main\/resources\/application.properties<\/code> to read everything from environment variables:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-bash\">whatsapp.api-url=${API_URL:https:\/\/graph.facebook.com\/v26.0\/${PHONE_NUMBER_ID:}\/messages}\nwhatsapp.access-token=${ACCESS_TOKEN}\nwhatsapp.app-secret=${APP_SECRET:}\nwhatsapp.verify-token=${VERIFY_TOKEN}\nwhatsapp.webhook-key=${WEBHOOK_KEY:}\nspring.threads.virtual.enabled=true<\/code><\/pre>\n\n\n\n<p>The last line turns on Java 21 virtual threads, which Spring Boot also uses in the executor for <code>@Async<\/code> tasks. <code>API_URL<\/code> points to Meta by default; the Vectalk section shows how to switch it.<\/p>\n\n\n\n<p>All the files below live in <code>src\/main\/java\/br\/exemplo\/bot\/<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. Sending messages with RestClient<\/h2>\n\n\n\n<p><code>RestClient<\/code> arrived in Spring Framework 6.1 and is the recommended synchronous option for HTTP calls. The client is built with <code>RestClient.builder()<\/code> because, in Spring Boot 4, the <code>RestClient.Builder<\/code> bean is only configured by <code>spring-boot-starter-restclient<\/code>, which the web starter doesn&#8217;t include. Create <code>WhatsAppClient.java<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-java\">package br.exemplo.bot;\n\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.beans.factory.annotation.Value;\nimport org.springframework.http.HttpHeaders;\nimport org.springframework.http.MediaType;\nimport org.springframework.stereotype.Component;\nimport org.springframework.web.client.RestClient;\nimport org.springframework.web.client.RestClientResponseException;\n\n@Component\npublic class WhatsAppClient {\n\n    private static final Logger log = LoggerFactory.getLogger(WhatsAppClient.class);\n    private final RestClient http;\n\n    public WhatsAppClient(@Value(\"${whatsapp.api-url}\") String apiUrl,\n                          @Value(\"${whatsapp.access-token}\") String token) {\n        this.http = RestClient.builder()\n                .baseUrl(apiUrl)\n                .defaultHeader(HttpHeaders.AUTHORIZATION, \"Bearer \" + token)\n                .build();\n    }\n\n    public String send(Map&lt;String, Object&gt; payload) {\n        Map&lt;String, Object&gt; body = new HashMap&lt;&gt;(payload);\n        body.put(\"messaging_product\", \"whatsapp\");\n        try {\n            return http.post()\n                    .contentType(MediaType.APPLICATION_JSON)\n                    .body(body)\n                    .retrieve()\n                    .body(String.class);\n        } catch (RestClientResponseException e) {\n            log.error(\"API {}: {}\", e.getStatusCode(), e.getResponseBodyAsString());\n            throw e;\n        }\n    }\n\n    public String sendText(Map&lt;String, String&gt; dest, String text) {\n        Map&lt;String, Object&gt; p = new HashMap&lt;&gt;(dest);\n        p.put(\"type\", \"text\");\n        p.put(\"text\", Map.of(\"body\", text));\n        return send(p);\n    }\n\n    public String sendTemplate(String to, String name, String lang, List&lt;String&gt; bodyParams) {\n        var params = bodyParams.stream()\n                .map(v -&gt; Map.of(\"type\", \"text\", \"text\", v))\n                .toList();\n        return send(Map.of(\n                \"to\", to,\n                \"type\", \"template\",\n                \"template\", Map.of(\n                        \"name\", name,\n                        \"language\", Map.of(\"code\", lang),\n                        \"components\", List.of(Map.of(\"type\", \"body\", \"parameters\", params)))));\n    }\n\n    public String sendButtons(Map&lt;String, String&gt; dest, String text, Map&lt;String, String&gt; buttons) {\n        var list = buttons.entrySet().stream()\n                .map(b -&gt; Map.of(\"type\", \"reply\",\n                        \"reply\", Map.of(\"id\", b.getKey(), \"title\", b.getValue())))\n                .toList();\n        Map&lt;String, Object&gt; p = new HashMap&lt;&gt;(dest);\n        p.put(\"type\", \"interactive\");\n        p.put(\"interactive\", Map.of(\n                \"type\", \"button\",\n                \"body\", Map.of(\"text\", text),\n                \"action\", Map.of(\"buttons\", list)));\n        return send(p);\n    }\n\n}<\/code><\/pre>\n\n\n\n<p>Three details that save debugging time:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Meta&#8217;s error body goes to the log.<\/strong> <code>RestClientResponseException<\/code> carries the JSON with <code>code<\/code> and <code>error_data.details<\/code>. Without it, all you get is &#8220;400 Bad Request&#8221;. The <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-api-error-codes\/\">WhatsApp API error codes<\/a> table helps you read it.<\/li>\n\n\n<li><strong>The recipient is a <code>Map<\/code>.<\/strong> Usually it is <code>{\"to\": \"5511...\"}<\/code>, but users with a username may arrive with only a BSUID, and then the send uses <code>recipient<\/code>. The topic is covered in <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-usernames-bsuid\/\">usernames and BSUID<\/a>.<\/li>\n\n\n<li><strong>Template parameters in the right order.<\/strong> If the count doesn&#8217;t match the approved template, the API returns error 132000. See <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-error-132000-template-parameters\/\">errors 132000 and 132012<\/a>.<\/li>\n\n<\/ul>\n\n\n\n<p>To test sending on its own, an approved template is enough: <code>client.sendTemplate(\"5511999999999\", \"hello_world\", \"en_US\", List.of())<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3. Webhook verification (GET)<\/h2>\n\n\n\n<p>When you save the URL in the dashboard, Meta sends a <code>GET<\/code> with <code>hub.mode=subscribe<\/code>, <code>hub.verify_token<\/code> and <code>hub.challenge<\/code>. If the token matches, respond <code>200<\/code> with the <code>hub.challenge<\/code> value as plain text. Any other response leaves the webhook unverified, and no events are sent.<\/p>\n\n\n\n<p>Create <code>WebhookController.java<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-java\">package br.exemplo.bot;\n\nimport org.springframework.beans.factory.annotation.Value;\nimport org.springframework.http.HttpStatus;\nimport org.springframework.http.MediaType;\nimport org.springframework.http.ResponseEntity;\nimport org.springframework.web.bind.annotation.*;\n\n@RestController\n@RequestMapping(\"\/webhook\")\npublic class WebhookController {\n\n    private final String verifyToken;\n    private final String webhookKey;\n    private final SignatureVerifier signature;\n    private final MessageProcessor processor;\n\n    public WebhookController(@Value(\"${whatsapp.verify-token}\") String verifyToken,\n                             @Value(\"${whatsapp.webhook-key}\") String webhookKey,\n                             SignatureVerifier signature,\n                             MessageProcessor processor) {\n        this.verifyToken = verifyToken;\n        this.webhookKey = webhookKey;\n        this.signature = signature;\n        this.processor = processor;\n    }\n\n    @GetMapping(produces = MediaType.TEXT_PLAIN_VALUE)\n    public ResponseEntity&lt;String&gt; verify(\n            @RequestParam(name = \"hub.mode\", required = false) String mode,\n            @RequestParam(name = \"hub.verify_token\", required = false) String token,\n            @RequestParam(name = \"hub.challenge\", required = false) String challenge) {\n        if (\"subscribe\".equals(mode) &amp;&amp; verifyToken.equals(token)) {\n            return ResponseEntity.ok(challenge);\n        }\n        return ResponseEntity.status(HttpStatus.FORBIDDEN).build();\n    }\n\n    @PostMapping\n    public ResponseEntity&lt;Void&gt; receive(\n            @RequestBody byte[] body,\n            @RequestHeader(name = \"X-Hub-Signature-256\", required = false) String header,\n            @RequestParam(name = \"key\", required = false) String key) {\n        if (!webhookKey.isEmpty() &amp;&amp; !webhookKey.equals(key)) {\n            return ResponseEntity.status(HttpStatus.FORBIDDEN).build();\n        }\n        if (!signature.isValid(body, header)) {\n            return ResponseEntity.status(HttpStatus.UNAUTHORIZED).build();\n        }\n        processor.process(body); \/\/ @Async: returns immediately\n        return ResponseEntity.ok().build();\n    }\n}<\/code><\/pre>\n\n\n\n<p>The key piece is <code>@RequestBody byte[] body<\/code>. It hands you the bytes exactly as they arrived, without going through Jackson. That is mandatory for the signature, as the next section explains.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">4. Validate the X-Hub-Signature-256 signature<\/h2>\n\n\n\n<p>Every <code>POST<\/code> from Meta carries <code>X-Hub-Signature-256: sha256=&lt;hash&gt;<\/code>, where the hash is an HMAC-SHA256 of the body, computed with the app secret. Without this check, anyone who discovers the URL can fake customer messages. Create <code>SignatureVerifier.java<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-java\">package br.exemplo.bot;\n\nimport java.nio.charset.StandardCharsets;\nimport java.security.GeneralSecurityException;\nimport java.security.MessageDigest;\nimport java.util.HexFormat;\n\nimport javax.crypto.Mac;\nimport javax.crypto.spec.SecretKeySpec;\n\nimport org.springframework.beans.factory.annotation.Value;\nimport org.springframework.stereotype.Component;\n\n@Component\npublic class SignatureVerifier {\n\n    private final String appSecret;\n\n    public SignatureVerifier(@Value(\"${whatsapp.app-secret}\") String appSecret) {\n        this.appSecret = appSecret;\n    }\n\n    public boolean isValid(byte[] body, String header) {\n        if (appSecret.isEmpty()) {\n            return true; \/\/ no secret configured (e.g. via Vectalk, protected by WEBHOOK_KEY)\n        }\n        if (header == null) {\n            return false;\n        }\n        String expected = \"sha256=\" + hmacHex(body);\n        return MessageDigest.isEqual(\n                expected.getBytes(StandardCharsets.UTF_8),\n                header.getBytes(StandardCharsets.UTF_8));\n    }\n\n    String hmacHex(byte[] body) {\n        try {\n            Mac mac = Mac.getInstance(\"HmacSHA256\");\n            mac.init(new SecretKeySpec(appSecret.getBytes(StandardCharsets.UTF_8), \"HmacSHA256\"));\n            return HexFormat.of().formatHex(mac.doFinal(body));\n        } catch (GeneralSecurityException e) {\n            throw new IllegalStateException(e);\n        }\n    }\n}<\/code><\/pre>\n\n\n\n<p>Two things to watch:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Always the original bytes.<\/strong> If the controller received an already deserialized object and you serialized it again to compute the HMAC, any difference in whitespace or field order would change the hash.<\/li>\n\n\n<li><strong>Constant-time comparison.<\/strong> <code>MessageDigest.isEqual<\/code> doesn&#8217;t stop at the first differing byte, which avoids leaking information through response timing.<\/li>\n\n<\/ul>\n\n\n\n<p>The article on <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-webhook-signature-validation\/\">how to validate the webhook signature<\/a> digs into the most common mistakes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">5. Process in the background<\/h2>\n\n\n\n<p>Meta expects a <code>200<\/code>. If delivery fails, it retries immediately and then a few more times, with decreasing frequency, for up to 7 days. That is why processing leaves the request thread and ignores IDs it has already seen. First, enable <code>@Async<\/code> on the main class (<code>WhatsappBotApplication.java<\/code>, generated by Initializr):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-java\">package br.exemplo.bot;\n\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\nimport org.springframework.scheduling.annotation.EnableAsync;\n\n@SpringBootApplication\n@EnableAsync\npublic class WhatsappBotApplication {\n    public static void main(String[] args) {\n        SpringApplication.run(WhatsappBotApplication.class, args);\n    }\n}<\/code><\/pre>\n\n\n\n<p>Now the payload types, in <code>WebhookPayload.java<\/code>. Records with only the fields we use. The <code>JsonMapper<\/code> configured by Spring Boot doesn&#8217;t fail on unknown properties, so the rest of the payload is ignored:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-java\">package br.exemplo.bot;\n\nimport java.util.List;\n\nimport com.fasterxml.jackson.annotation.JsonProperty;\n\npublic record WebhookPayload(List&lt;Entry&gt; entry) {\n\n    public record Entry(List&lt;Change&gt; changes) {}\n\n    public record Change(String field, ChangeValue value) {}\n\n    public record ChangeValue(List&lt;Message&gt; messages) {}\n\n    public record Message(String from,\n                          @JsonProperty(\"from_user_id\") String fromUserId,\n                          String id, String type, Text text, Interactive interactive) {}\n\n    public record Text(String body) {}\n\n    public record Interactive(String type, @JsonProperty(\"button_reply\") Reply buttonReply) {}\n\n    public record Reply(String id, String title) {}\n}<\/code><\/pre>\n\n\n\n<p>The <code>@JsonProperty<\/code> annotation stays in the <code>com.fasterxml.jackson.annotation<\/code> package even in Jackson 3. Finally, <code>MessageProcessor.java<\/code>, with the bot logic:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-java\">package br.exemplo.bot;\n\nimport java.util.LinkedHashMap;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Optional;\nimport java.util.Set;\nimport java.util.concurrent.ConcurrentHashMap;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.scheduling.annotation.Async;\nimport org.springframework.stereotype.Service;\n\nimport tools.jackson.databind.json.JsonMapper; \/\/ Spring Boot 3.x: com.fasterxml.jackson.databind.ObjectMapper\n\n@Service\npublic class MessageProcessor {\n\n    private static final Logger log = LoggerFactory.getLogger(MessageProcessor.class);\n    private static final Map&lt;String, String&gt; ANSWERS = Map.of(\n            \"hours\", \"We're open Monday to Friday, 9 a.m. to 6 p.m.\",\n            \"pricing\", \"See the full price list at https:\/\/example.com\/pricing\",\n            \"human\", \"Sure! An agent will continue the conversation right here.\");\n\n    private static final Map&lt;String, String&gt; MENU = new LinkedHashMap&lt;&gt;();\n    static { \/\/ LinkedHashMap keeps the button order\n        MENU.put(\"hours\", \"Opening hours\");\n        MENU.put(\"pricing\", \"Pricing\");\n        MENU.put(\"human\", \"Talk to an agent\");\n    }\n\n    private final JsonMapper mapper;\n    private final WhatsAppClient client;\n    private final Set&lt;String&gt; processed = ConcurrentHashMap.newKeySet(); \/\/ in production: Redis or a database\n\n    public MessageProcessor(JsonMapper mapper, WhatsAppClient client) {\n        this.mapper = mapper;\n        this.client = client;\n    }\n\n    @Async\n    public void process(byte[] body) {\n        WebhookPayload payload = mapper.readValue(body, WebhookPayload.class);\n        for (var entry : nonNull(payload.entry())) {\n            for (var change : nonNull(entry.changes())) {\n                if (change.value() == null) continue;\n                for (var msg : nonNull(change.value().messages())) {\n                    if (!processed.add(msg.id())) continue; \/\/ Meta may resend it\n                    try {\n                        handle(msg);\n                    } catch (RuntimeException e) {\n                        log.error(\"failed to reply to {}\", msg.id(), e);\n                    }\n                }\n            }\n        }\n    }\n\n    private void handle(WebhookPayload.Message msg) {\n        Map&lt;String, String&gt; dest = msg.from() != null\n                ? Map.of(\"to\", msg.from())\n                : Map.of(\"recipient\", msg.fromUserId());\n\n        if (\"text\".equals(msg.type())) {\n            String text = msg.text().body().strip().toLowerCase();\n            if (Set.of(\"hi\", \"hello\", \"hey\", \"menu\").contains(text)) {\n                client.sendButtons(dest, \"Hi! How can I help?\", MENU);\n            } else {\n                client.sendText(dest, \"Sorry, I didn't get that. Type *menu* to see the options.\");\n            }\n        } else if (\"interactive\".equals(msg.type())\n                &amp;&amp; \"button_reply\".equals(msg.interactive().type())) {\n            String choice = msg.interactive().buttonReply().id();\n            client.sendText(dest, ANSWERS.getOrDefault(choice, \"Invalid option.\"));\n        } else {\n            client.sendText(dest, \"For now I only understand text and buttons.\");\n        }\n    }\n\n    private static &lt;T&gt; List&lt;T&gt; nonNull(List&lt;T&gt; list) {\n        return Optional.ofNullable(list).orElse(List.of());\n    }\n}<\/code><\/pre>\n\n\n\n<p>A few notes on this code:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>@Async<\/code> only works when called from another bean.<\/strong> The controller calls <code>processor.process(...)<\/code>, which goes through the Spring proxy and runs on another thread. If you called <code>process<\/code> from inside <code>MessageProcessor<\/code> itself, it would run synchronously.<\/li>\n\n\n<li><strong>Status events<\/strong> (<code>sent<\/code>, <code>delivered<\/code>, <code>read<\/code>, <code>failed<\/code>) arrive on the same webhook, under <code>value.statuses<\/code>, and this bot ignores them. To handle them, see <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-api-message-status-webhook\/\">message status via webhook<\/a>.<\/li>\n\n\n<li><strong>In Jackson 3<\/strong>, read exceptions are <code>RuntimeException<\/code>s, so <code>readValue<\/code> doesn&#8217;t require a <code>try\/catch<\/code>. On Spring Boot 3.x with <code>ObjectMapper<\/code>, wrap the call and handle <code>IOException<\/code>.<\/li>\n\n<\/ul>\n\n\n\n<p>Reply button limits: up to 3 buttons, <code>title<\/code> up to 20 characters and <code>id<\/code> up to 256. For lists and other formats, see <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-interactive-messages-api\/\">interactive messages<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">6. Unit test for the signature<\/h2>\n\n\n\n<p>The signature is the part that breaks most often in production, so it is worth a test that depends on neither Spring nor the network. In <code>src\/test\/java\/br\/exemplo\/bot\/SignatureVerifierTest.java<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-java\">package br.exemplo.bot;\n\nimport static org.junit.jupiter.api.Assertions.*;\n\nimport java.nio.charset.StandardCharsets;\n\nimport org.junit.jupiter.api.Test;\n\nclass SignatureVerifierTest {\n\n    private final SignatureVerifier verifier = new SignatureVerifier(\"test-secret\");\n    private final byte[] body = \"{\\\"entry\\\":[]}\".getBytes(StandardCharsets.UTF_8);\n\n    @Test\n    void acceptsValidSignature() {\n        String header = \"sha256=\" + verifier.hmacHex(body);\n        assertTrue(verifier.isValid(body, header));\n    }\n\n    @Test\n    void rejectsTamperedBody() {\n        String header = \"sha256=\" + verifier.hmacHex(body);\n        byte[] tampered = \"{\\\"entry\\\": []}\".getBytes(StandardCharsets.UTF_8);\n        assertFalse(verifier.isValid(tampered, header));\n    }\n\n    @Test\n    void rejectsMissingHeader() {\n        assertFalse(verifier.isValid(body, null));\n    }\n}<\/code><\/pre>\n\n\n\n<p>The second test shows why the original bytes matter: a single extra space in the JSON is enough to invalidate the signature. Run it with <code>.\/mvnw test<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">7. Run and test locally<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-bash\">export VERIFY_TOKEN=\"any-text-you-like\"\nexport ACCESS_TOKEN=\"EAAG...\"\nexport APP_SECRET=\"your-app-secret\"\nexport PHONE_NUMBER_ID=\"123456789012345\"\n.\/mvnw spring-boot:run<\/code><\/pre>\n\n\n\n<p>In another terminal, test verification and a signed event without depending on Meta:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-bash\">curl \"http:\/\/localhost:8080\/webhook?hub.mode=subscribe&amp;hub.verify_token=any-text-you-like&amp;hub.challenge=42\"\n\nBODY='{\"entry\":[{\"changes\":[{\"value\":{\"messages\":[{\"from\":\"5511999999999\",\"id\":\"wamid.test1\",\"type\":\"text\",\"text\":{\"body\":\"menu\"}}]}}]}]}'\nSIG=$(printf '%s' \"$BODY\" | openssl dgst -sha256 -hmac \"$APP_SECRET\" | awk '{print $NF}')\ncurl -i -X POST http:\/\/localhost:8080\/webhook \\\n  -H \"Content-Type: application\/json\" \\\n  -H \"X-Hub-Signature-256: sha256=$SIG\" \\\n  --data-binary \"$BODY\"<\/code><\/pre>\n\n\n\n<p>The first command returns <code>42<\/code>. The second returns <code>200<\/code> right away, and then the bot sends the menu to the number in the <code>from<\/code> field (use your own test number). A <code>401<\/code> means the signature is wrong; check that <code>APP_SECRET<\/code> is the same in both terminals.<\/p>\n\n\n\n<p>To receive real events, Meta requires a public URL with a valid TLS certificate (self-signed won&#8217;t work). In production, put a reverse proxy with HTTPS in front of the application, such as Nginx, Caddy or your cloud&#8217;s load balancer. In development, a tunnel does the job: see <a href=\"https:\/\/vectalk.com.br\/blog\/en\/test-whatsapp-webhook-locally\/\">test the webhook locally with ngrok<\/a>. Then, under App Dashboard &gt; WhatsApp &gt; Configuration, enter the callback URL and the verify token and subscribe to the <code>messages<\/code> field.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Production checklist<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Persistent deduplication.<\/strong> The in-memory <code>Set<\/code> disappears on restart and isn&#8217;t shared across replicas. Use Redis or a table with a unique key on the message <code>id<\/code>.<\/li>\n\n\n<li><strong>A real queue.<\/strong> <code>@Async<\/code> is fine for quick replies. If processing calls AI or slow systems, publish the event to a queue (RabbitMQ, Kafka, SQS) and consume it in another service. If the webhook will run on serverless functions, see <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-webhook-aws-lambda-serverless\/\">serverless webhook<\/a>.<\/li>\n\n\n<li><strong>Secrets out of the code.<\/strong> Keep the token and app secret in environment variables or a secrets vault.<\/li>\n\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How to do it with Vectalk<\/h2>\n\n\n\n<p>Vectalk is a proxy for the official WhatsApp Cloud API: send payloads and webhook events are the same as Meta&#8217;s, so the project works without changing its logic. Three things change:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>URL and token.<\/strong> Set <code>API_URL=https:\/\/apis.vectalk.com.br\/api\/messages<\/code> and use an instance token generated in Vectalk as <code>ACCESS_TOKEN<\/code>. With it, the <code>phone_number_id<\/code> is resolved automatically.<\/li>\n\n\n<li><strong>Registering the webhook via API.<\/strong> Register the URL with <code>POST https:\/\/apis.vectalk.com.br\/api\/webhooks<\/code>, passing <code>instance_id<\/code>, <code>url<\/code> and <code>name<\/code>. You can have several URLs per instance.<\/li>\n\n\n<li><strong>Protecting the endpoint.<\/strong> The <a href=\"https:\/\/docs.vectalk.com.br\/concepts\/webhooks\">Vectalk webhook documentation<\/a> doesn&#8217;t describe a signature header. Leave <code>APP_SECRET<\/code> empty, set <code>WEBHOOK_KEY<\/code> to a long random value and register the URL as <code>https:\/\/bot.yourcompany.com\/webhook?key=YOUR_VALUE<\/code>.<\/li>\n\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-bash\">curl -X POST https:\/\/apis.vectalk.com.br\/api\/webhooks \\\n  -H \"Authorization: Bearer YOUR_VECTALK_TOKEN\" \\\n  -H \"Content-Type: application\/json\" \\\n  -d '{\"instance_id\": \"YOUR_INSTANCE\", \"url\": \"https:\/\/bot.yourcompany.com\/webhook?key=YOUR_VALUE\", \"name\": \"Java Bot\"}'<\/code><\/pre>\n\n\n\n<p>Vectalk expects a <code>200<\/code> in under 20 seconds and resends the event if it doesn&#8217;t get one, which the deduplication already covers. Create your account at <a href=\"https:\/\/apps.vectalk.com.br\/register\">apps.vectalk.com.br\/register<\/a> and see the other endpoints in the <a href=\"https:\/\/docs.vectalk.com.br\">documentation<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Is there an official Meta SDK for Java?<\/h3>\n\n\n\n<p>You don&#8217;t need one. The Cloud API is HTTP with JSON, and Spring&#8217;s <code>RestClient<\/code> covers sending. Calling the API directly also lets you use new features as soon as Meta documents them, without waiting for a library update.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I use WebClient instead of RestClient?<\/h3>\n\n\n\n<p>Yes. <code>WebClient<\/code> makes sense if the application is already reactive (Spring WebFlux). In a Spring MVC application with virtual threads, the synchronous <code>RestClient<\/code> is simpler to read and debug, which is why this tutorial uses it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why doesn&#8217;t the signature match if APP_SECRET is correct?<\/h3>\n\n\n\n<p>In most cases, the HMAC is being computed over a body different from the one received: a filter that reads and rewrites the body, an object that was deserialized and serialized again, or a charset conversion. Receive <code>byte[]<\/code> in the controller and compute the hash over those bytes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can the bot start the conversation?<\/h3>\n\n\n\n<p>Free-form text and buttons only work inside the 24-hour window opened by the customer&#8217;s last message. To start or resume a conversation after that, use <code>sendTemplate<\/code> with an approved template.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Official sources consulted on October 29, 2026:<\/strong> <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/webhooks\/create-webhook-endpoint\" target=\"_blank\" rel=\"noreferrer noopener\">Create a webhook endpoint (Meta)<\/a>, <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/webhooks\/overview\" target=\"_blank\" rel=\"noreferrer noopener\">Webhooks overview (Meta)<\/a>, <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/messages\/interactive-reply-buttons-messages\" target=\"_blank\" rel=\"noreferrer noopener\">Interactive reply buttons (Meta)<\/a>, <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/pricing\" target=\"_blank\" rel=\"noreferrer noopener\">Pricing (Meta)<\/a>, <a href=\"https:\/\/docs.spring.io\/spring-framework\/reference\/integration\/rest-clients.html\" target=\"_blank\" rel=\"noreferrer noopener\">Spring Framework: REST Clients<\/a>, <a href=\"https:\/\/docs.spring.io\/spring-boot\/reference\/features\/task-execution-and-scheduling.html\" target=\"_blank\" rel=\"noreferrer noopener\">Spring Boot: Task Execution and Scheduling<\/a>, <a href=\"https:\/\/spring.io\/blog\/2025\/10\/07\/introducing-jackson-3-support-in-spring\/\" target=\"_blank\" rel=\"noreferrer noopener\">Introducing Jackson 3 support in Spring<\/a>, <a href=\"https:\/\/docs.vectalk.com.br\/concepts\/webhooks\">Vectalk: webhooks<\/a>, <a href=\"https:\/\/docs.vectalk.com.br\/authentication\">Vectalk: authentication<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A complete WhatsApp API Java tutorial with Spring Boot: sending with RestClient, webhook verification, HMAC signature check, fast 200 replies and async processing.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-808","post","type-post","status-publish","format-standard","hentry","category-blog"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>WhatsApp API Java Tutorial with Spring Boot | Vectalk<\/title>\n<meta name=\"description\" content=\"WhatsApp API Java tutorial with Spring Boot: send with RestClient, verify the webhook, validate X-Hub-Signature-256 and process messages asynchronously.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-cloud-api-java-spring-boot\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WhatsApp API Java Tutorial with Spring Boot | Vectalk\" \/>\n<meta property=\"og:description\" content=\"WhatsApp API Java tutorial with Spring Boot: send with RestClient, verify the webhook, validate X-Hub-Signature-256 and process messages asynchronously.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-cloud-api-java-spring-boot\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog Vectalk\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-29T13:32:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-29T13:32:21+00:00\" \/>\n<meta name=\"author\" content=\"wanderleyfcunha\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"wanderleyfcunha\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"15 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/whatsapp-cloud-api-java-spring-boot\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/whatsapp-cloud-api-java-spring-boot\\\/\"},\"author\":{\"name\":\"wanderleyfcunha\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#\\\/schema\\\/person\\\/ff36ecd9d8257856f227f8e5d639db2b\"},\"headline\":\"WhatsApp Cloud API with Java (Spring Boot): Sending Messages and Webhooks from Scratch\",\"datePublished\":\"2026-10-29T13:32:11+00:00\",\"dateModified\":\"2026-10-29T13:32:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/whatsapp-cloud-api-java-spring-boot\\\/\"},\"wordCount\":1522,\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/whatsapp-cloud-api-java-spring-boot\\\/\",\"url\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/whatsapp-cloud-api-java-spring-boot\\\/\",\"name\":\"WhatsApp API Java Tutorial with Spring Boot | Vectalk\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#website\"},\"datePublished\":\"2026-10-29T13:32:11+00:00\",\"dateModified\":\"2026-10-29T13:32:21+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#\\\/schema\\\/person\\\/ff36ecd9d8257856f227f8e5d639db2b\"},\"description\":\"WhatsApp API Java tutorial with Spring Boot: send with RestClient, verify the webhook, validate X-Hub-Signature-256 and process messages asynchronously.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/whatsapp-cloud-api-java-spring-boot\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/whatsapp-cloud-api-java-spring-boot\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/whatsapp-cloud-api-java-spring-boot\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WhatsApp Cloud API with Java (Spring Boot): Sending Messages and Webhooks from Scratch\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/\",\"name\":\"Blog Vectalk\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#\\\/schema\\\/person\\\/ff36ecd9d8257856f227f8e5d639db2b\",\"name\":\"wanderleyfcunha\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g\",\"caption\":\"wanderleyfcunha\"},\"sameAs\":[\"https:\\\/\\\/vectalk.com.br\\\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WhatsApp API Java Tutorial with Spring Boot | Vectalk","description":"WhatsApp API Java tutorial with Spring Boot: send with RestClient, verify the webhook, validate X-Hub-Signature-256 and process messages asynchronously.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-cloud-api-java-spring-boot\/","og_locale":"en_US","og_type":"article","og_title":"WhatsApp API Java Tutorial with Spring Boot | Vectalk","og_description":"WhatsApp API Java tutorial with Spring Boot: send with RestClient, verify the webhook, validate X-Hub-Signature-256 and process messages asynchronously.","og_url":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-cloud-api-java-spring-boot\/","og_site_name":"Blog Vectalk","article_published_time":"2026-10-29T13:32:11+00:00","article_modified_time":"2026-10-29T13:32:21+00:00","author":"wanderleyfcunha","twitter_card":"summary_large_image","twitter_misc":{"Written by":"wanderleyfcunha","Est. reading time":"15 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-cloud-api-java-spring-boot\/#article","isPartOf":{"@id":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-cloud-api-java-spring-boot\/"},"author":{"name":"wanderleyfcunha","@id":"https:\/\/vectalk.com.br\/blog\/#\/schema\/person\/ff36ecd9d8257856f227f8e5d639db2b"},"headline":"WhatsApp Cloud API with Java (Spring Boot): Sending Messages and Webhooks from Scratch","datePublished":"2026-10-29T13:32:11+00:00","dateModified":"2026-10-29T13:32:21+00:00","mainEntityOfPage":{"@id":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-cloud-api-java-spring-boot\/"},"wordCount":1522,"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-cloud-api-java-spring-boot\/","url":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-cloud-api-java-spring-boot\/","name":"WhatsApp API Java Tutorial with Spring Boot | Vectalk","isPartOf":{"@id":"https:\/\/vectalk.com.br\/blog\/#website"},"datePublished":"2026-10-29T13:32:11+00:00","dateModified":"2026-10-29T13:32:21+00:00","author":{"@id":"https:\/\/vectalk.com.br\/blog\/#\/schema\/person\/ff36ecd9d8257856f227f8e5d639db2b"},"description":"WhatsApp API Java tutorial with Spring Boot: send with RestClient, verify the webhook, validate X-Hub-Signature-256 and process messages asynchronously.","breadcrumb":{"@id":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-cloud-api-java-spring-boot\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vectalk.com.br\/blog\/en\/whatsapp-cloud-api-java-spring-boot\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-cloud-api-java-spring-boot\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vectalk.com.br\/blog\/"},{"@type":"ListItem","position":2,"name":"WhatsApp Cloud API with Java (Spring Boot): Sending Messages and Webhooks from Scratch"}]},{"@type":"WebSite","@id":"https:\/\/vectalk.com.br\/blog\/#website","url":"https:\/\/vectalk.com.br\/blog\/","name":"Blog Vectalk","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vectalk.com.br\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/vectalk.com.br\/blog\/#\/schema\/person\/ff36ecd9d8257856f227f8e5d639db2b","name":"wanderleyfcunha","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g","caption":"wanderleyfcunha"},"sameAs":["https:\/\/vectalk.com.br\/blog"]}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts\/808","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/comments?post=808"}],"version-history":[{"count":1,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts\/808\/revisions"}],"predecessor-version":[{"id":811,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts\/808\/revisions\/811"}],"wp:attachment":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/media?parent=808"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/categories?post=808"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/tags?post=808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}