Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
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. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Space Context Me API
version: v1
servers:
- url: https://api.spacecontext.app/v1
tags:
- name: Me
paths:
/me:
get:
operationId: getCurrentKey
summary: Get the current API key user
security:
- apiKey: []
responses:
'200':
description: Current API key user
headers:
Cache-Control:
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/MeResponse'
'401':
$ref: '#/components/responses/ErrorResponse'
'429':
$ref: '#/components/responses/RateLimited'
tags:
- Me
components:
responses:
RateLimited:
description: Too many requests. Retry after the number of seconds in `Retry-After`.
headers:
Retry-After:
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
ErrorResponse:
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
MeResponse:
type: object
required:
- user
- key
properties:
user:
type: object
required:
- id
- email
- is_pro
properties:
id:
type: string
email:
type: string
format: email
is_pro:
type: boolean
key:
type: object
required:
- id
- mode
- scopes
properties:
id:
type:
- string
- 'null'
pattern: ^key_
description: Null when the caller is the developer console, signed in as the owner.
mode:
type: string
enum:
- live
- test
scopes:
type: array
items:
$ref: '#/components/schemas/ApiKeyScope'
ApiKeyScope:
type: string
enum:
- spaces:read
- scans:read
- scans:write
- spaces:sensitive
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
- request_id
properties:
code:
type: string
message:
type: string
request_id:
type: string
retry_after:
type: integer
description: 'On a 429: seconds to wait, as in `Retry-After`.'
daily_limit:
type: integer
description: 'On a 429 for a daily allowance: the allowance (it resets at midnight UTC).'
max_streams:
type: integer
description: 'On a 429 from `GET /scans/{id}/events`: the streams an account may hold open at once.'
max_open_scans:
type: integer
description: 'On a 429 from `POST /spaces/{id}/scans`: the scans an account may hold created and not started.'
additionalProperties: true
securitySchemes:
apiKey:
type: http
scheme: bearer
bearerFormat: sc_live or sc_test