---
title: "Criar Token Cartao"
method: POST
path: "/tokens?appId={public_key}"
---

# Criar Token Cartao

`POST /tokens?appId={public_key}`

## Request

- Base URL: `https://api.mundipagg.com/core/v1`
- URL: `https://api.mundipagg.com/core/v1/tokens?appId={public_key}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/mundipagg/apis/mundipagg-api/docs/tokens%3FappId=:public_key/post.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `appId` string, required

## Request body

- object
  - `type` string, required: Tipo do cartao
  - `card` object: Informações do cartão. [Saiba mais sobre cartão](https://docs.mundipagg.com/v1/reference#cart%C3%B5es)

## Response `200`

200

- object
  - `id` string
  - `type` string
  - `created_at` string
  - `expires_at` string
  - `card` object
    - `last_four_digits` string
    - `holder_name` string
    - `exp_month` integer
    - `exp_year` integer
    - `brand` string
    - `label` string

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/mundipagg/apis/mundipagg-api.md) - [All operations](https://skmtc.dev/mundipagg/apis/mundipagg-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mundipagg/apis/mundipagg-api/revisions/1ddb9f03a82d?raw)
