meta { name: Refresh type: http seq: 2 } post { url: {{uri}}/auth/refresh body: json auth: inherit } body:json { { "refresh_token": "{{refresh_token}}" } } script:post-response { const data = res.getBody(); const token = data.data.access_token; bru.setEnvVar("token", token); } settings { encodeUrl: true timeout: 0 }