---
title: "Tests Bearer authentication"
url: "https://sbx.developer-internal.sanofi.com/apis/httpbin-1/versions/da3754ed-f573-4cf9-a100-7688d77483f4/paths/bearer/get"
---

> Full API specification: https://sbx.developer-internal.sanofi.com/apis/httpbin-1/versions/da3754ed-f573-4cf9-a100-7688d77483f4.md

# Tests Bearer authentication

`GET` `/bearer`

## Responses

- `200` - Authorized
- `404` - Unauthorized

## OpenAPI definition

```yaml
openapi: 3.0.1
info:
  title: httpbin
  version: 1.0-oas3
servers:
  - url: https://httpbin.org
  - url: http://httpbin.apim.eu/
  - url: https://eu.httpbin.org
  - url: http://eu.httpbin.org
  - url: http://localhost:8000/test
paths:
  /bearer:
    get:
      summary: Tests Bearer authentication
      tags:
        - auth
      security:
        - bearerAuth: []
      responses:
        "200":
          description: Authorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  authenticated:
                    type: boolean
                    example: true
                  token:
                    type: string
                    description: Bearer token specified in the request
        "404":
          description: Unauthorized
security:
  - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
```
