# authentication-token

From **GitHub v3 REST API**.

Authentication Token

- Type: `object`

## Properties

### `expires_at`

- Required: true
- Type: `string`
- Format: `date-time`
- Example: `2016-07-11T22:14:10Z`

The time this token expires

### `permissions`

- Required: false
- Type: `object`
- Example: `{
  "deployments": "write",
  "issues": "read"
}`

### `repositories`

- Required: false
- Type: `array`

The repositories this token has access to

### `repository_selection`

- Required: false
- Type: `string`
- Allowed values: `"all"`, `"selected"`

Describe whether all repositories have been selected or there's a selection involved

### `single_file`

- Required: false
- Type: `string`
- Nullable: true
- Example: `config.yaml`

### `token`

- Required: true
- Type: `string`
- Example: `v1.1f699f1069f60xxx`

The token used for authentication

## JSON Schema

```json
{"description":"Authentication Token","properties":{"expires_at":{"description":"The time this token expires","example":"2016-07-11T22:14:10Z","format":"date-time","type":"string"},"permissions":{"example":{"deployments":"write","issues":"read"},"type":"object"},"repositories":{"description":"The repositories this token has access to","items":{"$ref":"#/components/schemas/repository"},"type":"array"},"repository_selection":{"description":"Describe whether all repositories have been selected or there's a selection involved","enum":["all","selected"],"type":"string"},"single_file":{"example":"config.yaml","nullable":true,"type":"string"},"token":{"description":"The token used for authentication","example":"v1.1f699f1069f60xxx","type":"string"}},"required":["token","expires_at"],"title":"Authentication Token","type":"object"}
```
