---
updatedAt: 2025-06-05T21:40:05.000Z
agentTools:
  projectIndex: https://apidocs.officient.io/llms.txt
---

# Get access token

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "officient-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.officient.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/1.0/token": {
      "post": {
        "summary": "Get access token",
        "description": "",
        "operationId": "testinput-1",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "description": "Authorization code in case of 3 legged oauth flow"
                  },
                  "client_id": {
                    "type": "string",
                    "description": "client_id of your app. Can be found under 'my apps'"
                  },
                  "client_secret": {
                    "type": "string",
                    "description": "client secret of your app. Can be found under 'my apps'"
                  },
                  "grant_type": {
                    "type": "string",
                    "description": "should always be either authorization_code or refresh_token"
                  },
                  "refresh_token": {
                    "type": "string",
                    "description": "optional"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"access_token\": \"8c649d8be4971bef5eaf53b1484158c74b4ee979\",\n    \"expires_in\": 3600,\n    \"token_type\": \"Bearer\",\n    \"scope\": \"admin\",\n    \"refresh_token\": \"fed4845d2aacf5ef438b91a319c73190c1480675\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "access_token": {
                      "type": "string",
                      "example": "8c649d8be4971bef5eaf53b1484158c74b4ee979"
                    },
                    "expires_in": {
                      "type": "integer",
                      "example": 3600,
                      "default": 0
                    },
                    "token_type": {
                      "type": "string",
                      "example": "Bearer"
                    },
                    "scope": {
                      "type": "string",
                      "example": "admin"
                    },
                    "refresh_token": {
                      "type": "string",
                      "example": "fed4845d2aacf5ef438b91a319c73190c1480675"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```