---
title: "API Key Request"
method: POST
path: "/apikey"
tags: ["Request Key"]
---

# API Key Request

`POST /apikey`

Request API key by providing valid Operation Code credentials

## Request body

- ApiKeyRequest
  - `email` string — A valid e-mail address registered with Operation Code
  - `password` string — Password

## Response `200`

API key response

- ApiKeyResponse
  - `apiVersion` string — API version
  - `credentials` ApiKeyResponseData
    - `apikey` string — API key
    - `created_at` string, date-time — Date created
    - `email` string — E-mail address
    - `last_updated` string, date-time — Date updated
  - `status` string — Status message
  - `status_code` integer — Status code

## Other responses

- `400` — Bad request
- `401` — Unauthorized Access

## Changes

- **2020-05-12** `a1ebd031433f` — 3 warning, 1 info
  - removed the optional property `data` from the response with the `200` status
  - removed the optional property `data` from the response with the `400` status
  - removed the optional property `data` from the response with the `401` status
  - added the optional property `credentials` to the response with the `200` status
- **2020-01-10** `ac7f919a3345` — 2 warning
  - removed the optional property `errors/invalid-credentials` from the response with the `400` status
  - removed the optional property `errors/invalid-credentials` from the response with the `401` status
- **2019-08-04** `ae55dad39068` — 1 breaking, 10 info
  - the `errors` response's property type/format changed from `array`/`` to `object`/`` for status `401`
  - added the non-success response with the status `400`
  - removed the non-success response with the status `422`
  - added the optional property `errors/bad-request` to the response with the `401` status
  - …7 more
- **2019-07-28** `3d0b8e100bf8` — 1 breaking, 8 warning, 4 info
  - the `errors` response's property type/format changed from `object`/`` to `array`/`` for status `401`
  - removed the optional property `credentials` from the response with the `200` status
  - removed the optional property `errors/bad-request` from the response with the `401` status
  - removed the optional property `errors/invalid-params` from the response with the `401` status
  - …9 more

[Change history](https://skmtc.dev/operationcode/apis/operation-code-resources-api/changes/apikey/post.md)

---

[API](https://skmtc.dev/operationcode/apis/operation-code-resources-api.md) · [All operations](https://skmtc.dev/operationcode/apis/operation-code-resources-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/operationcode/operation-code-resources-api/revisions/6071d3157f6d/schema)
