Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.
openapi: 3.2.0
info:
title: Stract My User API
description: 'Get structured output from unstructured inputs
## Machine authentication
Programmatic access to the API is authenticated with an API key. Include the API key in every request as a bearer token in the `authorization` header:
```
authorization: bearer [apiKey]
```'
version: 0.9.0
contact:
name: Matt
email: matt@stract-api.com
servers:
- url: https://api.stract-api.com
description: Production
security:
- bearerAuth: []
tags:
- name: My User
paths:
/my_user:
get:
summary: Get the current user
description: Retrieve the profile of the currently authenticated user
responses:
'200':
description: Current user
content:
application/json:
schema:
$ref: '#/components/schemas/User'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: User not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- My User
operationId: getMyUser
x-operation-id-source: derived
put:
summary: Edit the current user
description: Update one or more properties of the currently authenticated user. At least one property must be provided.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EditMyUserRequest'
responses:
'200':
description: Successfully updated user
content:
application/json:
schema:
$ref: '#/components/schemas/User'
'400':
description: Request body has no fields set || User fie
tags:
- My User
operationId: putMyUser
x-operation-id-source: derived
components:
schemas:
EditMyUserRequest:
type: object
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
Error:
type: object
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
User:
type: object
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true