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: Terra OAuth API
description: Terra API
termsOfService: https://app.terra.bio/#terms-of-service
license:
name: BSD
url: http://opensource.org/licenses/BSD-3-Clause
version: '0.1'
servers:
- url: /
security:
- oidc: []
tags:
- name: OAuth
paths:
/api/refresh-token-status:
get:
tags:
- OAuth
summary: deprecated
description: 'This API is a deprecated noop. Previously, it returned the status of the current user''s refresh token.
Since refresh tokens are no longer used in the back end, this API is now hardcoded to respond as if the
user''s refresh token is valid. This API may be removed in a future release.'
operationId: getRefreshTokenStatus
responses:
200:
description: OK
content:
application/json:
schema:
type: object
x-passthrough: false
/handle-oauth-code:
post:
tags:
- OAuth
summary: deprecated
description: 'This API is a deprecated noop. Previously, it allowed the server to acquire a refresh token.
Since refresh tokens are no longer used in the back end, this API is now hardcoded to respond as if
it successfully acquired a refresh token, without doing any actual work.
This API may be removed in a future release.'
operationId: handleOauthCode
requestBody:
content:
application/json:
schema:
required:
- code
- redirectUri
type: object
properties:
code:
type: string
redirectUri:
type: string
required: false
responses:
204:
description: All set
content: {}
x-passthrough: false
x-codegen-request-body-name: body
components:
securitySchemes:
oidc:
type: oauth2
x-tokenName: id_token
flows:
authorizationCode:
authorizationUrl: OAUTH_AUTHORIZATION_URL
scopes: {}
tokenUrl: OAUTH_TOKEN_URL
oidc_google_billing_scope:
type: oauth2
x-tokenName: id_token
flows:
authorizationCode:
authorizationUrl: OAUTH_AUTHORIZATION_URL_WITH_GOOGLE_BILLING_SCOPE
scopes: {}
tokenUrl: OAUTH_TOKEN_URL_WITH_GOOGLE_BILLING_SCOPE