# Get Authorization Info

GET https://api.webflow.com/v2/token/introspect

Information about the authorization token

<Note>Access to this endpoint requires a bearer token from a [Data Client App](/data/docs/getting-started-data-clients).</Note>


Reference: https://developers.webflow.com/data/reference/token/introspect

## OpenAPI Specification

```yaml
openapi: 3.1.1
info:
  title: Get Authorization Info
  version: endpoint_token.introspect
paths:
  /token/introspect:
    get:
      operationId: introspect
      summary: Get Authorization Info
      description: >
        Information about the authorization token


        <Note>Access to this endpoint requires a bearer token from a [Data
        Client App](/data/docs/getting-started-data-clients).</Note>
      tags:
        - - subpackage_token
      parameters:
        - name: Authorization
          in: header
          description: >-
            Bearer authentication of the form `Bearer <token>`, where token is
            your auth token.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Request was successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/token_introspect_Response_200'
        '401':
          description: >-
            Provided access token is invalid or does not have access to
            requested resource
          content: {}
components:
  schemas:
    TokenIntrospectGetResponsesContentApplicationJsonSchemaAuthorizationAuthorizedTo:
      type: object
      properties:
        siteIds:
          type: array
          items:
            description: Any type
          description: Array of Sites this app is authorized to
        workspaceIds:
          type: array
          items:
            description: Any type
          description: Array of Workspaces this app is authorized to
        userIds:
          type: array
          items:
            description: Any type
          description: Array of Users this app is authorized to
    TokenIntrospectGetResponsesContentApplicationJsonSchemaAuthorization:
      type: object
      properties:
        id:
          type: string
          format: objectid
          description: The unique ID of the Authorization instance
        createdOn:
          type: string
          format: date-time
          description: The date the Authorization was created
        lastUsed:
          type: string
          format: date-time
          description: The date the Authorization was last used
        grantType:
          type: string
          description: The grant type of the Authorization
        rateLimit:
          type: integer
          description: The default rate limit for the Authorization (requests/min)
        scope:
          type: string
          description: >-
            Comma separted list of OAuth scopes corresponding to the
            Authorization
        authorizedTo:
          $ref: >-
            #/components/schemas/TokenIntrospectGetResponsesContentApplicationJsonSchemaAuthorizationAuthorizedTo
    TokenIntrospectGetResponsesContentApplicationJsonSchemaApplication:
      type: object
      properties:
        id:
          type: string
          format: objectid
          description: Unique identifier for the Application
        description:
          type: string
          description: Application description provided by the developer
        homepage:
          type: string
          format: uri
          description: Application homepage URL provided by the developer
        displayName:
          type: string
          description: Application name provided by the developer
    token_introspect_Response_200:
      type: object
      properties:
        authorization:
          $ref: >-
            #/components/schemas/TokenIntrospectGetResponsesContentApplicationJsonSchemaAuthorization
          description: The Authorization object
        application:
          $ref: >-
            #/components/schemas/TokenIntrospectGetResponsesContentApplicationJsonSchemaApplication

```

## SDK Code Examples

```python
from webflow import Webflow

client = Webflow(
    access_token="YOUR_ACCESS_TOKEN",
)
client.token.introspect()

```

```typescript
import { WebflowClient } from "webflow-api";

const client = new WebflowClient({ accessToken: "YOUR_ACCESS_TOKEN" });
await client.token.introspect();

```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.webflow.com/v2/token/introspect"

	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(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.webflow.com/v2/token/introspect")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
HttpResponse<String> response = Unirest.get("https://api.webflow.com/v2/token/introspect")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.webflow.com/v2/token/introspect', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
var client = new RestClient("https://api.webflow.com/v2/token/introspect");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.webflow.com/v2/token/introspect")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```