Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
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: XFA Referral API
version: '1'
servers:
- url: https://api.xfa.tech
description: Production stack API url
- url: https://test-api.xfa.tech
description: Test stack API url
security:
- bearerAuth: []
tags:
- name: Referral
paths:
/public/referral/{referralCode}:
parameters:
- name: referralCode
in: path
required: true
description: A user's referral code, from a ?ref= link.
schema:
type: string
get:
tags:
- Referral
summary: Resolve a referral code to the referrer's first name
description: 'Public (unauthenticated) endpoint for the referral landing page. Returns
only the referrer''s first name. Every failure answers 404 so the page falls
back to a name-less hero and the endpoint cannot be used to probe.'
security: []
responses:
'200':
description: The referrer's first name
content:
application/json:
schema:
type: object
properties:
first_name:
type: string
required:
- first_name
'400':
description: No referral code supplied
'404':
description: Referral code unknown or no name available
operationId: getPublicReferralByReferralCode
x-operation-id-source: derived
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT