# Token

> **Package : spaceone.api.identity.v1**

## Token

{% hint style="info" %}
**Token Methods:**
{% endhint %}

| NO | Method                  | Request Type                                                                                                     | Response Type           | Description |
| -- | ----------------------- | ---------------------------------------------------------------------------------------------------------------- | ----------------------- | ----------- |
| 1  | [**issue**](#issue)     | [IssueTokenRequest](#issuetokenrequest)                                                                          | [TokenInfo](#tokeninfo) |             |
| 2  | [**refresh**](#refresh) | [google.protobuf.Empty](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/empty.proto) | [TokenInfo](#tokeninfo) |             |

### issue

> **POST** /identity/v1/token/issue

| Type     | Message                                 |
| -------- | --------------------------------------- |
| Request  | [IssueTokenRequest](#issuetokenrequest) |
| Response | [TokenInfo](#tokeninfo)                 |

### refresh

> **POST** /identity/v1/token/refresh

| Type     | Message                 |
| -------- | ----------------------- |
| Request  | \[Empty]                |
| Response | [TokenInfo](#tokeninfo) |

## Message

### IssueTokenRequest

| No | Field       | Type                                                                                                               | Required | Description |
| -- | ----------- | ------------------------------------------------------------------------------------------------------------------ | -------- | ----------- |
| 1  | credentials | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) | ✅        |             |
| 2  | domain\_id  | string                                                                                                             | ✅        |             |

### TokenInfo

| No | Field          | Type   | Description |
| -- | -------------- | ------ | ----------- |
| 1  | access\_token  | string |             |
| 2  | refresh\_token | string |             |
