Consultar assinatura
curl --request GET \
--url https://api.notifique.dev/v1/platform/workspaces/{id}/subscription \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.notifique.dev/v1/platform/workspaces/{id}/subscription', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.notifique.dev/v1/platform/workspaces/{id}/subscription"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.notifique.dev/v1/platform/workspaces/{id}/subscription"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"data": {
"tierIndex": 1,
"tierName": "Basic",
"status": "ACTIVE",
"billingType": "CREDIT_CARD",
"creditsIncluded": 55000,
"creditsRemaining": 48200,
"creditsUsedThisCycle": 6800,
"cycleStart": "2026-08-01T00:00:00.000Z",
"cycleEnd": "2026-09-01T00:00:00.000Z",
"nextBillingAt": "2026-09-01T00:00:00.000Z",
"balanceCents": 0,
"asaasSubscriptionId": "sub_xxx",
"cancelAtPeriodEnd": false
}
}{
"success": false,
"code": "VERIFICATION_TOKEN_INVALID"
}{
"success": false,
"code": "FORBIDDEN"
}{
"success": false,
"code": "BILLING_NOT_CONFIGURED"
}Billing
Consultar assinatura
Plano, créditos do ciclo, status da assinatura e snapshot de billing. Escopo billing:read na API key.
GET
/
v1
/
platform
/
workspaces
/
{id}
/
subscription
Consultar assinatura
curl --request GET \
--url https://api.notifique.dev/v1/platform/workspaces/{id}/subscription \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.notifique.dev/v1/platform/workspaces/{id}/subscription', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.notifique.dev/v1/platform/workspaces/{id}/subscription"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.notifique.dev/v1/platform/workspaces/{id}/subscription"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"data": {
"tierIndex": 1,
"tierName": "Basic",
"status": "ACTIVE",
"billingType": "CREDIT_CARD",
"creditsIncluded": 55000,
"creditsRemaining": 48200,
"creditsUsedThisCycle": 6800,
"cycleStart": "2026-08-01T00:00:00.000Z",
"cycleEnd": "2026-09-01T00:00:00.000Z",
"nextBillingAt": "2026-09-01T00:00:00.000Z",
"balanceCents": 0,
"asaasSubscriptionId": "sub_xxx",
"cancelAtPeriodEnd": false
}
}{
"success": false,
"code": "VERIFICATION_TOKEN_INVALID"
}{
"success": false,
"code": "FORBIDDEN"
}{
"success": false,
"code": "BILLING_NOT_CONFIGURED"
}Autorizações
ntfPlatformBearerAuthntfPlatformApiKeyHeader
API key (sk_live_...) ou sessionToken de login.
Parâmetros de caminho
ID do workspace (workspaceId retornado no verify).
Esta página foi útil?

